PHP 8 · Command line

Start a development server

Serve the current folder at http://localhost:8000. For development only.

php -S localhost:8000

Official PHP 8 documentation

More command line commands

All command line commands · PHP 8 cheatsheet

Was this page helpful?