command to start running php code in local code example
Example 1: serve php file
Open Terminal
php -S localhost:8000
Example 2: php make server
cd <PATH TO YOUR APP>
php -S localhost:<PORT>
Open Terminal
php -S localhost:8000
cd <PATH TO YOUR APP>
php -S localhost:<PORT>