command to start php code example
Example 1: how to open server in php
php -S localhost:8000 // Run Php server
Example 2: execute php file from command line
php -f /path/to/your/file.php
php -S localhost:8000 // Run Php server
php -f /path/to/your/file.php