The CLI to php allows checking for syntax errors using php -l I’ve created a very basic script which will recursively check folders for php files with syntax errors. It’s intended to quickly show syntax errors in a large application. It’s available here: https://github.com/JimMackin/PHPSyntaxCheck

Simply run it and pass the path to your app:

php phpsyntaxcheck.php /path/to/php/files