Usually, developers are required to setup an external web server to bootstrap and develop website in PHP such as Apache with mod_php, or nginx…
However, from PHP 5.4+, the language provides a convenient built-in web server, so developers can get started with PHP development right away without the need of setting up external servers.
The built-in PHP web server can be started via following command:
$ php -S IP:PORT
For example, if you want to start localhost with port 8000, you can issue following command:
$ php -S localhost:8000
Command should be issued at the root of the PHP project, then the web can be accessed on browser.