In 1994 Rasmus Lerdorf wanted to know how many people were looking at his online résumé. He wrote small programs to log visits. When he released the source in 1995, those tools gave other people a way to build pages that responded to data. Modern PHP grew out of that work and an overhaul of the language engine led by Andi Gutmans and Zeev Suraski.
Sticker 021 in the Outstanding Programmers Sticker Album · Leggi questo articolo in italiano
1. From a hit counter to PHP Tools
In his June 8, 1995 announcement, Lerdorf introduced Personal Home Page Tools as a set of CGI programs written in C. CGI gives a web server a way to pass a request to an external program and use its output in the response. A website could use those programs to display a visit count, collect form data, or generate a guestbook page.
Lerdorf’s Forms Interpreter (FI) made data from HTML forms easier to use in programs. PHP/FI arrived in 1996 and also offered database access and user-defined functions. PHP/FI 2.0 left beta in November 1997. Lerdorf’s announcement and timeline · Official history of PHP.
2. Three original lines from PHP Tools 1.0.8
In php/common.c, lines 39–41, the function ShowVersion begins to generate a page identifying the installed version. The official archive preserves the C source. These three lines are reproduced verbatim.
void ShowVersion(void) {
puts("<html><head><title>PHP Tools Version Information</title></head><body><hr width=400>");
printf("<font size=+2><center>PHP Tools Version %s</center></font><br>\n",VERSION);
The first statement outputs the HTML header. The next replaces %s with VERSION, which is defined as 1.0.8 in php/version.h. It is a small example of a server program generating part of a page.
Copyright © 1995 Rasmus Lerdorf. This excerpt is distributed under the GNU General Public License, version 2 or later, as specified in the original file. The code comes without warranty under the terms of that license. Original source and bundled license in the official archive · GNU GPL v2 license text.
3. A shared engine and modern PHP
In 1997 Andi Gutmans and Zeev Suraski rewrote the engine that parsed the language. They worked with Lerdorf on the transition from PHP/FI to PHP 3, released by the development team in June 1998. Extensions let more developers add support for databases, protocols, and other features. Gutmans and Suraski then worked on the Zend Engine, which powered PHP 4 in 2000. Project timeline and credits.
Modern PHP can sit inside an HTML document. In this teaching example written for the article, the server evaluates the sum and sends the browser a paragraph containing 5.
<p><?php echo 2 + 3; ?></p>
4. PHP’s legacy on the web today
When someone opens a WordPress article, the server can run PHP to retrieve the content, apply the theme, and generate HTML. The underlying idea is the one that made Lerdorf’s early tools practical: a program decides what content to send to the browser. The language grew through the work of the people who rewrote the engine, developed extensions, improved documentation, and maintained the project. Official WordPress requirements.
For current versions, the project lists the Modified BSD License (BSD-3-Clause), introduced through the license update adopted on April 4, 2026. The historical excerpt carries the GNU GPL terms stated above. PHP licensing information · Project notes on the licensing transition.
Featured image: an original AI-generated editorial illustration for the album, inspired by computers from the early web.
5. Suggest a new sticker
Nominate a programmer whose contribution to software can be documented. Lesser-known contributors are welcome. Tell us about the project, explain the contribution, and share verifiable sources. Providing an email address is optional. The editorial team reviews every suggestion before deciding whether to publish a profile.
