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

All command line commands · PHP 8 cheatsheet

Was this page helpful?