In 1994, a Danish programmer Rasmus Lerdorf created a set of scripts in Perl / CGI to output and recording the visitors of his online resume, which handles templates HTML-documents. Lerdorf called a set of Personal Home Page (Personal Home Page). Soon, the functionality and speed of Perl - shell scripts - is no longer suffice, and Lerdorf developed using C language interpreter of new templates PHP / FI (born Personal Home Page / Forms Interpreter - «Personal Home Page / Forms Interpreter").
In 1997, after a long beta test came out the second version of the handler written in C - PHP / FI 2.0. It was used about 1% (approximately 50,000) of all Internet domains worldwide.
Version of PHP 3.0 has undergone significant processing, which set a modern look and style of programming language. In 1997, two Israeli programmers, Andi Gutmans and Zeev Suraski, completely rewrote the code interpreter. PHP 3.0 was officially released in June 1998.
One of the strengths of PHP 3.0 was its strong extensibility features additional modules. Subsequently, the user interface writing PHP extensions, attracted dozens of developers working on their modules, allowing PHP to work with a large number of databases, protocols, to support a large number of API. A large number of developers has led to the rapid development of language and the rapid growth of its popularity. Also, language was renamed in PHP.
By the winter of 1998, almost immediately after the official release of PHP 3.0, Andi Gutmans and Zeev Suraski began processing core PHP. The objectives were to improve performance of complex applications and improve the modularity of code base PHP. The new engine, called the Zend Engine, has successfully coped with the tasks and was first introduced in mid-1999. PHP 4.0, based on this engine, and coupled with a set of additional features, was officially released in May 2000. In addition to improving performance, PHP 4.0 has several key features such as support of sessions, output buffering, more secure ways of handling user input and several new language constructs.
The fifth version of PHP developers has been released July 13, 2004. The changes include kernel upgrade Zend (Zend Engine 2), which significantly increased the efficiency of the interpreter. Introduced support for a markup language XML. Completely rewritten the function of the PLO, which were largely similar to the model used in Java. In particular, put a destructor, open, closed and protected members and methods, the final members and methods, interfaces, and cloning sites. Later versions were also introduced namespaces and closures.
Sixth version of PHP is under development since October 2006. It has already been done many innovations, such as exclusion from the nucleus of POSIX regular expressions and the "long" superglobal arrays, removing directives safe_mode, magic_quotes_gpc and register_globals from the configuration file php.ini. Also a lot of attention paid to support Unicode.