Detect syntax errors in multiple PHP files with xargs
With the Command Line Interpreter for PHP (most of the time called php-cli or php5-cli), you can check if one single file contains syntax errors by simply calling
php5 -l file.phpThe problem with that is, if you have many files to check, on the command line you might easily spend your time typing filenames.