The PHP code is enclosed in special start and end tags that allow you to jump into and out of PHP mode. At the most basic level, PHP can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. Perhaps the strongest and most significant feature in PHP is its support for a wide range of databases. One example of a language used for CGI-bin implementation. Can be used for non-Internet Applications.
Speed can be an advantage here.