Good news for PHP Development community. Till PHP 5.3 developers has to set-up a web server environment from development like APACHE etc, to test php codes. Not only this, apart from installing the server environment developers also have to configure the necessary modules that come with Apache web server.
And after all this setup is complete, all the codes and necessary files had to be copied to the DocumentRoot which is mostly inside the /var/www etc folder after which programmer are also required to take care of the file permissions in order to ensure smooth functioning and execution of the scripts.
Now PHP 5.4.0 and developers will no more require to go through all these hassles required in setting up an web server in order to test their PHP applications. PHP 5.4.0 will have a built in web development server which can be started right inside the same folder where you are developing your project codes.
For eg. this command will start a web server for running / testing your PHP codes with documentroot as the folder from which you run this command and port number as specified (1490 in this case).
$ php -S localhost:1490
After the server is started, you can access / execute all the codes in your browser at: http://localhost:1490. You can also specify a different document root when you start the server.