One résumé, one useful question
In 1994, Rasmus Lerdorf wanted to know who was looking at his online résumé. That question led him to build the first tool in a line that became PHP, a programming language that now runs sites including WordPress and Wikipedia.
CGI, or Common Gateway Interface, gave a web server a way to run a program in response to a page request. For Lerdorf, that capability turned a static résumé into something that could record activity around it.
That distinction helps explain PHP’s eventual place on the web. A static page delivers the same prepared material each time. A program running on the server can respond to a request, process information and produce a result for the visitor.
He first wrote the tool in Perl. Lerdorf later recalled that PHP began as “a simple little cgi wrapper written in Perl,” created in an afternoon between contracts so he could see who was reading his résumé, according to an account that quotes him.
The tool had a narrow purpose, and that purpose shaped its appeal. It solved an immediate web problem with code that could be used on a real page. PHP began as a practical answer before it became a language with a formal identity.
Lerdorf called the suite Personal Home Page Tools, usually shortened to PHP Tools. The name suited a collection of scripts built around the everyday needs of a personal website.
He then rewrote the Perl version in C. That change made the tool faster and lighter on the server by removing the cost of starting Perl every time someone accessed the résumé, as an account of PHP’s origins explains.
The rewrite established an early habit that would define PHP’s later history. When the software’s foundation limited the work people wanted to do, its developers returned to the foundation itself.
When a personal tool became public material
That first rewrite made the tool more useful to Lerdorf. Sharing it made the tool useful to people he had never met.
In June 1995, Lerdorf released the source code for PHP Tools to the public, according to the PHP project’s history. Source code is the set of instructions programmers read and change to make software work.
The release gave web builders a starting point for their own pages. It also allowed the project to develop through uses beyond the visitor tracking that had prompted it.
The early toolkit still reflected the world of personal home pages. A historical account describes a simplistic parser that understood only a few special macros, together with utilities common on home pages, including a guestbook and a counter. That account of PHP’s early history shows a package built for people who wanted a page to do a little more than display prepared text.
The counter carried Lerdorf’s original interest in measuring visitors into a feature other site owners could use. The guestbook and the parser widened the package’s purpose by giving people simple ways to add activity and reusable instructions to their pages.
Those modest tools matter because they reveal the route PHP took into wider use. It entered the web through ordinary publishing tasks, where a small improvement could immediately be put to work on a live site. The public release gave that practical approach room to travel.
That expansion arrived quickly. In September 1995, Lerdorf extended the tools and used the name FI, short for Forms Interpreter.
A web form lets a visitor send information through a page. Supporting forms made the tools relevant to websites that needed to receive and handle information, along with displaying it.
Forms also drew the project closer to the data behind a website. Lerdorf developed Form Interpreter to integrate SQL queries into web pages, according to a history of the language. An SQL query is an instruction used to request or work with information in a database.
That capability pointed toward a wider kind of website. Pages could collect information from visitors and work with stored information as part of the same web task.
In October 1995, Lerdorf released a complete rewrite and restored the PHP name, briefly calling the project the Personal Home Page Construction Kit. In April 1996, he combined the names of the earlier releases as PHP/FI, and the project received version 2.0 status that June, the official history records.
PHP/FI therefore carried two parts of the project’s past in its name. Personal Home Page referred to its origin in a single person’s web presence. Forms Interpreter described the expanding job of processing information supplied through webpages.
The use of PHP/FI grew along with those capabilities. A historical account reports that it was in use on at least 15,000 websites by late 1996 and on more than 50,000 by mid-1997. That account also identifies mid-1997 as the point when the project shifted from Lerdorf’s own effort toward a more organized team effort.
Growth also exposed the limits of software designed for a smaller job. PHP/FI had found an audience, and its next users would ask more of it than its original structure could readily provide.
The e-commerce project that changed PHP
In 1997, Andi Gutmans and Zeev Suraski encountered PHP/FI while working on a university e-commerce project. They decided it lacked the robustness they needed for that work, according to an account of the project’s origins.
Their problem was especially revealing because e-commerce combines several of the jobs PHP/FI had begun to take on. A site has to present pages, receive information through forms and process the work those requests create.
Gutmans and Suraski chose to rewrite PHP/FI’s core from scratch. That decision supplied the decisive turn in PHP’s origin story.
The core included the parser, which reads the instructions in a program and turns them into a form the system can process. Replacing the parser meant replacing the machinery on which every PHP/FI script depended.
The risk lay in the scale of that choice. PHP/FI already had widespread use, and a complete rewrite asked its developers to create a stronger base while a community was building on the existing one.
Gutmans and Suraski began their rewrite in 1997 in Tel Aviv, Israel. Lerdorf joined them in developing a new, independent programming language, as PHP’s official history records.
The collaboration changed the project’s purpose. Lerdorf’s original utility had accumulated practical web features through use. The new group set out to build a language that could support a wider class of web applications.
The result became PHP 3.0, which the PHP Development Team announced in June 1998 as the official successor to PHP/FI 2.0.
The project also adopted the name PHP: Hypertext Preprocessor. The phrase is a recursive acronym, since its first word is PHP itself. The project history calls PHP 3 the first release that closely resembles the PHP people use today.
PHP 3 brought a modular architecture. In a modular system, developers can extend separate components for different jobs, which made the language adaptable as web work became more varied.
The rewrite had reached a large audience by the time of its official release. PHP 3 was already installed on more than 70,000 domains around the world. At its peak, it was installed on approximately 10% of internet web servers, according to PHP’s historical record.
The engine underneath
PHP 3 gave the project a new language design. Its growth soon created a further need for speed.
By the winter of 1998, Gutmans and Suraski had started another rewrite of PHP’s core. This time, their work produced the Zend Engine.
The name combined Zeev and Andi’s first names. The engine first appeared in mid-1999 and became the foundation for PHP 4, which reached its official release in May 2000, as the PHP project’s history records.
An engine is the runtime system that executes PHP code. A programmer writes a script, the server receives a request, and the engine runs the script to produce the result for that request.
PHP’s request model helps explain why the runtime matters so much. In its shared-nothing architecture, each web request runs a script from a clean slate and discards everything when that request finishes.
For a system carrying repeated web requests, improvements to the engine can affect a large amount of work. The Zend Engine gave PHP 4 a higher-performance core and carried the project into a larger phase of its life.
PHP 5 continued that engine-led development. Released in July 2004, it used Zend Engine 2.0 and included a rebuilt object model, according to the official history.
An object model gives programmers a way to organize software around objects, which group data with related actions. That design gave PHP developers another way to structure larger applications.
Rebuilding for a vast installed base
PHP Next Generation, known as phpng, became PHP 7 in 2015. The release brought Zend Engine 3.0 and performance improvements that made PHP 7 up to twice as fast as PHP 5.6, according to PHP’s official history.
The release echoed Lerdorf’s earlier move from Perl to C. It also echoed the decision Gutmans and Suraski made when PHP/FI had reached its limits for their e-commerce work.
PHP 8 followed in 2020 with a just-in-time compiler, named arguments and attributes. A just-in-time compiler compiles code while a program runs, and the release showed that PHP’s development continued long after its personal-homepage beginnings, as an account of the language’s evolution notes.
The ecosystem around PHP also grew. Composer brought dependency management to the language. A dependency is a separate piece of software that an application needs, and a dependency manager helps a project obtain and organize those pieces.
Laravel gave PHP a modern, well-designed framework for building applications. A framework provides a shared structure for common development work, so programmers can build from established tools and conventions. Composer and Laravel show how the language’s surrounding tools grew alongside the language itself.
That reach gives PHP an enormous installed base. It also makes maintenance a continuing responsibility, since widely used software remains connected to applications created across many years.
PHP is maintained by a small community of core developers, with support in part from the PHP Foundation, according to reporting on the project’s maintenance challenge. The PHP Foundation has one full-time employee, its executive director, along with 14 mostly part-time contractors and 10 unpaid board members, that reporting says.
The challenge includes older deployments. The same report says nearly half of PHP websites run versions that have fallen outside official security updates.
It also describes a widening gap between the work and the people available to review it. Proposed code changes nearly doubled in a year while the number of contributors stayed level, according to the same reporting. The PHP Foundation called one delay “a structural failure.”
That pressure reveals the final scale of the origin story. Lerdorf could revise a small tool for his own website. The people maintaining its successor now make decisions that can affect software spread across a vast installed base.








Comments (0)