This is a small test to check performance of solutions to generate ASTs of PHP code in Go and PHP.
- PHP 7.4 or up.
- Composer.
- Go 1.18 or up.
- Build a binary with
go build -mod=readonly. - Run it with
./go-php-parser <absolute path to source PHP file>.
- Install dependencies with
composer install. - Run
php index.php <absolute path to source PHP file>