run php file on localhost code example Example: run php in browser localhost cd my-project php -S localhost:8000