PHP 8 · Command line

Run a script

Run a PHP file from the command line.

php script.php

Official PHP 8 documentation

More command line commands

All command line commands · PHP 8 cheatsheet

Was this page helpful?