Skip to content
Why Is It Called 'PHP'? — The Origin of the Name

Why Is It Called 'PHP'? — The Origin of the Name

DodaTech Updated Jun 20, 2026 3 min read

What started as a hacker’s tinkering — a few Perl scripts to count visitors on a personal homepage — grew into a language that powers nearly 80% of the web. PHP’s naming history is a journey from humble beginnings to a recursive acronym, complete with elephants and existential rebranding.

The Story

In 1994, Rasmus Lerdorf was a Danish-Greenlandic programmer working at the University of Waterloo in Canada. He had recently put his resume online and wanted to track who was visiting it. Back then, “analytics” meant writing your own scripts. Lerdorf wrote a simple set of Perl Common Gateway Interface (CGI) scripts that would display his resume and count visitors.

He called the collection “Personal Home Page Tools” — PHP Tools for short. The name was utterly mundane, describing exactly what it did: tools for your personal homepage. Nobody, least of all Lerdorf, imagined this would become one of the most widely used programming languages in history.

Over the next year, Lerdorf expanded the toolkit, adding a Forms Interpreter (FI) that could parse form data. The combined project was called PHP/FI (Personal Home Page / Forms Interpreter). It was still a humble collection of scripts, but it was growing. Lerdorf released PHP/FI as open source in 1995, and the developer community began to take notice.

How It Evolved

The turning point came in 1997 when Israeli developers Zeev Suraski and Andi Gutmans were using PHP/FI for a university project and found it too limited. They contacted Lerdorf, and together they decided to completely rewrite the parser. The new engine became PHP 3, released in 1998, and with it came a new name.

“Personal Home Page” no longer fit a language used by Fortune 500 companies. So the team created a recursive acronym, a tradition in programming made famous by GNU (GNU’s Not Unix). PHP now stood for “PHP: Hypertext Preprocessor.” It was recursive — the first letter of the acronym was the acronym itself — and it better described what the language actually did: preprocess HTML to generate dynamic web pages.

The elephant logo — an adorable, cartoonish elephant — became PHP’s mascot. The elephant was chosen because “PHP” sounds like “elephant” if you squint hard enough (or so the community claims). The logo, created by Vincent Pontier in 2000, shows a blue elephant with the PHP logo on its side, a playful contrast to the language’s serious role powering major platforms like Facebook, Wikipedia, and WordPress.

Did You Know?

PHP/FI version 2.0 was never actually released — the version jumped from 2.0 Beta to PHP 3.0 after Suraski and Gutmans’ rewrite. The official PHP documentation still occasionally uses the “elephant” nickname informally. Lerdorf has said he never set out to create a programming language — he just wanted to count visitors. The rest, as they say, is history.

FAQ

What did PHP originally stand for?
PHP originally stood for “Personal Home Page Tools” created by Rasmus Lerdorf in 1994. After the rewrite by Suraski and Gutmans, it became the recursive acronym “PHP: Hypertext Preprocessor.”
What is a recursive acronym?
A recursive acronym is one where the first letter of the acronym stands for the acronym itself. In PHP, the “P” in “PHP: Hypertext Preprocessor” stands for “PHP.” This style was popularized by GNU (GNU’s Not Unix).
Why is PHP's mascot an elephant?
The elephant mascot, created by Vincent Pontier in 2000, was chosen partly because “PHP” sounds vaguely like “elephant” and partly to add a friendly, approachable face to the language. The elephant is officially named “elePHPant.”

Related Etymologies

Why Is It Called 'Perl'? Why Is It Called 'Python'? Why Is It Called 'Linux'?

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro