Validate the syntax of PHP files more efficiently

view full story

http://serverfault.com – Validating the syntax of a bunch of PHP files is SLOW We use php -l file.php to validate the syntax of many php files as part of a continuous integration setup. We actually do something like: `find . -name "*.php" | xargs --max-args=1 php -l" because the php executable only takes one argument. This is horrendously slow and mostly because it involves firing up a brand new parser / interpreter (not to mention process) for each PHP file in order to verify it's syntax and we have thousands. Is there a faster way? (HowTos)