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