PHP 5.4 has a built-in web server, which is very convenient for local development, because you no longer need to install web server software like Apache. You can start the PHP web server directly in the command line.
The startup method is very simple. Enter the directory where the project is located on the command line, and then use the -S parameter to start the service. You need to specify the host address and port. All request information will be displayed in the console window, as follows As shown in the picture: