PHP 8 · Command line

Check a file for syntax errors

Check syntax without running the file.

php -l file.php

Official PHP 8 documentation

More command line commands

All command line commands · PHP 8 cheatsheet

Was this page helpful?