PHP LintPHP Lint is probably the easiest way to validate your code on syntax errors, but it's also the most overlooked feature of PHP on command line.
Provides a convenient way to perform only a syntax check on the given PHP code.
On success, the text No syntax errors detected in is written to standard output and the shell return code is 0.

