Detecting syntax errors in a PHP script without running itEditCreated 3/26/2007, updated 5/18/2017php -l script_to_check.php See also Detecting syntax errors in a Bash script without running it Detecting syntax errors in a Perl script without running it Detecting syntax errors in a Ruby script without running it phpwiki