When programming, lint checking your source code can be useful to detect low level issues like syntax errors, undefined or unused variables. The PHP command line interpreter has an option -l
/--syntax-check
to do a syntax check of the provided PHP file, instead of executing it:
$ php -l file_with …