PHP 8 · Command line Open the interactive shell Start an interactive prompt. Exit with Ctrl+D. php -a Official PHP 8 documentation More command line commands Check the PHP versionStart a development serverServe a public folder with a router scriptRun a scriptRun a one-line commandCheck a file for syntax errors All command line commands · PHP 8 cheatsheet ← Read a configuration valueTurn on strict typing →