php serve
snippet in php

run php server

user8266

cd path/to/your/app
php -S localhost:8000

serve php file

user6986

Open Terminal
php -S localhost:8000

php serve

user9533

// to serve folder foo in public
$ cd ~/public
$ php -S localhost:8000 -t foo/

php server

user8784

cd path/to/your/app
php -S 127.0.0.1:8000

php simple server

user8613

simple built-in php server