PHP
acronymKept in this browser · My desk
Stands for: PHP: Hypertext Preprocessor
The open-source scripting language that runs on the web server and produces the page the browser receives; it runs most of the websites whose server-side language can be identified from outside.
PHP (PHP: Hypertext Preprocessor) began in 1994 as Rasmus Lerdorf's Personal Home Page Tools, was rebuilt from 1997 by Andi Gutmans and Zeev Suraski, and now runs on the Zend Engine, reaching the network through a server API (SAPI): PHP-FPM (FastCGI Process Manager) behind NGINX or Apache, the Apache module, CGI (Common Gateway Interface) or the command line. W3Techs counted it on 68.8% of the websites whose server-side language it could identify on 12 November 2026.
What it is. The PHP manual defines PHP, a recursive acronym for PHP: Hypertext Preprocessor, as a widely used open-source general-purpose scripting language especially suited to web development and able to be embedded in HTML (HyperText Markup Language). It is mainly used for server-side scripting, generating a page for each request, and also runs scripts from the command line. The language is executed by the Zend Engine and reaches the web through a server API (SAPI): the FastCGI Process Manager (PHP-FPM) behind NGINX or Apache, the Apache module mod_php, plain CGI, or servers such as LiteSpeed and FrankenPHP. Which SAPI is in use matters operationally, because it decides how a request crosses from the web server into PHP, and that boundary is where several of PHP's worst vulnerabilities have lived.
From tools to a language. Rasmus Lerdorf created the first version in 1994 as a set of CGI binaries written in C to track visits to his online résumé, and called it Personal Home Page Tools. He released the source in June 1995; in September 1995 it briefly became FI, for Forms Interpreter, with Perl-like variables and code embedded in HTML comments; in October 1995 a complete rewrite returned as the Personal Home Page Construction Kit, deliberately C-like; and in April 1996 the names merged into PHP/FI, which gained database support, cookies and user functions. PHP/FI 2.0 had only one full release, leaving beta in November 1997, and a Netcraft survey in May 1998 found nearly 60,000 domains reporting PHP, about 1 per cent of the internet's domains.
The rewrites. Andi Gutmans and Zeev Suraski in Tel Aviv began rewriting the parser in 1997 for a university e-commerce project, joined forces with Lerdorf, and renamed the result simply PHP, now the recursive acronym, dropping the personal-use sense of the old name. PHP 3.0 was announced in June 1998, was on more than 70,000 domains at release, and at its peak ran on about 10 per cent of the internet's web servers; its extensibility drew dozens of module authors. Gutmans and Suraski then rebuilt the core as the Zend Engine, named from Zeev and Andi, introduced in mid-1999, and PHP 4.0 shipped on it in May 2000 with HTTP (Hypertext Transfer Protocol) sessions and output buffering. PHP 5, in July 2004, brought Zend Engine 2.0 and a new object model. PHP 6, planned around deep Unicode support, was abandoned, its other features going into 5.3 (namespaces) and 5.4 (traits and the short array syntax). PHP 7.0 in 2015 brought Zend Engine 3.0, up to twice as fast as PHP 5.6, with consistent 64-bit support and the null coalescing operator; PHP 8.0 in 2020 added named arguments, union types, attributes, match expressions, the nullsafe operator and an optimizing JIT (just-in-time) compiler, followed by enumerations and the Fiber class (full-stack, interruptible functions, in the PHP manual's words) in 8.1, readonly classes in 8.2 and typed class constants in 8.3. PHP 8.5 was released on 20 November 2025, and 8.6.0 reached its fourth release candidate on 21 October 2026.
The support clock. Each branch gets two years of active support, with regular bug and security releases, and then two more years of critical security fixes only, released as needed; support ends on 31 December. On 12 November 2026 php.net listed 8.2 to 8.5 as supported: 8.2, first released on 8 December 2022, receives security fixes until 31 December 2026; 8.3 until 31 December 2027; 8.4 until 31 December 2028; 8.5 until 31 December 2029. Everything older is end of life: 8.1 since 31 December 2025, last release 8.1.34; 8.0 since 26 November 2023 (8.0.30); 7.4 since 28 November 2022 (7.4.33); 5.6 since 31 December 2018 (5.6.40).
How much of the web runs it, and on what. W3Techs counted PHP on 68.8 per cent of the websites whose server-side language it could identify on 12 November 2026. Its version breakdown put 67.0 per cent of PHP sites on PHP 8, 25.5 per cent on 7, 7.5 per cent on 5 and 0.1 per cent on 4, and within PHP 8 the shares were 35.2 per cent for 8.3, 26.3 for 8.2, 13.8 for 8.1, 12.8 for 8.4, 6.5 for 8.5 and 5.3 for 8.0. Combining the two tables, roughly 46 per cent of the PHP sites in that breakdown ran a branch that no longer receives security fixes, and when 8.2's support ends on 31 December 2026 the figure rises past 60 per cent unless those sites move. WordPress, on 39.2 per cent of all websites by W3Techs' count, recommends PHP 8.3 or later but still documents that it works on PHP 7.4 in legacy environments, noting that those versions are past end of life.
A security history at the boundary. Three of the best-known PHP vulnerabilities sit exactly where the web server hands a request to PHP, each tracked by a Common Vulnerabilities and Exposures (CVE) identifier. CVE-2012-1823: php-cgi before 5.3.12 and 5.4.2 treated a query string without an equals sign as command-line options, so a URL (uniform resource locator) could switch PHP's own settings and run code; the US Cybersecurity and Infrastructure Security Agency (CISA) added it to its Known Exploited Vulnerabilities (KEV) catalogue on 25 March 2022. CVE-2019-11043: in certain PHP-FPM configurations behind a web server, 7.1, 7.2 and 7.3 before 7.1.33, 7.2.24 and 7.3.11 could be made to write past their buffers into FastCGI protocol data, again remote code execution, scored 9.8 by NVD (National Vulnerability Database) and 8.7 by PHP itself, in KEV from the same day. CVE-2024-4577: with Apache and PHP-CGI on Windows, the Best-Fit replacement of characters in certain code pages let characters in the command line be read as PHP options, affecting 8.1, 8.2 and 8.3 before 8.1.29, 8.2.20 and 8.3.8, scored 9.8 and added to KEV on 12 June 2024.
October 2026. On 21 October 2026 PHP published 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with an advisory headed critical remote code execution, update now, for two flaws in the engine itself. CVE-2026-109618 arises because PHP abandons a request with longjmp() on an out-of-memory error, which can leave request memory uninitialized for the cleanup that follows; CVE-2026-109619 arises because global state that points into one request's memory can outlive that memory and be used by a later request on the same worker. PHP scored both 9.2 in CVSS (Common Vulnerability Scoring System) 4.0, NVD scored them 9.8 and 8.1 in CVSS 3.1, and CISA added both to KEV on 26 October 2026. The advisory put every installation that serves web requests at risk, PHP-FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed alike, and the risk highest for mod_php, where a demonstrated exploit triggers before any application code runs; its interim measures, such as memory_limit=-1 set where applications cannot override it, smaller post_max_size values and session.upload_progress.enabled=0, narrow specific paths without making an installation safe. Only supported branches received fixed releases.
Operating it. PHP has two update streams that fail independently: the runtime, from php.net or from the operating system's packages (distributions and long-term-support vendors received the October 2026 patches in advance), and the application's libraries, which Composer installs per project into a vendor directory and which composer audit checks against published security advisories. The other rule is about the FastCGI listener. The manual's warning is blunt: an exposed FastCGI endpoint allows arbitrary code execution. On the same host a Unix socket should be preferred; with a TCP (Transmission Control Protocol) socket, listen.allowed_clients must list the permitted web servers because it is unset by default and then accepts any address; in containers the FPM port should not be published on the host; and FPM pools are not a security boundary, since they share one OPcache. A FastCGI port reachable from an untrusted network is a remote shell waiting for a client.
Also known as: php: hypertext preprocessor, personal home page tools, php/fi, php language, php 8
Sources
- PHP Manual, History of PHP (read 2026-11-12): Personal Home Page Tools by Rasmus Lerdorf in 1994; source released in June 1995; FI in September and the Personal Home Page Construction Kit in October 1995; PHP/FI in April 1996, 2.0 out of beta in November 1997; about 60,000 domains in May 1998; PHP 3.0 by Andi Gutmans and Zeev Suraski, announced in June 1998, at its peak on about 10% of web servers; the Zend Engine in mid-1999 and PHP 4.0 in May 2000; PHP 5 in July 2004; PHP 6 abandoned; PHP 7.0 in 2015 with Zend Engine 3.0; PHP 8.0 in 2020 with a JIT compiler
- PHP Manual, Introduction, What is PHP? and What can PHP do? (read 2026-11-12): a recursive acronym; a widely used open-source general-purpose scripting language suited to web development and embeddable in HTML; mainly server-side scripting, also command-line scripting
- php.net, Supported Versions (read 2026-11-12): two years of active support and two of critical security fixes only; 8.2 (8 December 2022), 8.3 (23 November 2023), 8.4 (21 November 2024) and 8.5 (20 November 2025) supported, with security support ending on 31 December 2026, 2027, 2028 and 2029
- php.net, Unsupported Branches (read 2026-11-12): 8.1 ended on 31 December 2025 with 8.1.34; 8.0 on 26 November 2023 with 8.0.30; 7.4 on 28 November 2022 with 7.4.33; 5.6 on 31 December 2018 with 5.6.40
- W3Techs, Usage statistics of PHP for websites, 12 November 2026 (read 2026-11-12): PHP on 68.8% of websites whose server-side language is known; version 8 on 67.0% of PHP sites, 7 on 25.5%, 5 on 7.5%, 4 on 0.1%
- W3Techs, Usage statistics of PHP version 8, 12 November 2026 (read 2026-11-12): among PHP 8 sites, 8.3 35.2%, 8.2 26.3%, 8.1 13.8%, 8.4 12.8%, 8.5 6.5%, 8.0 5.3%
- W3Techs, Usage statistics of WordPress, 12 November 2026 (read 2026-11-12): WordPress on 57.9% of websites whose CMS is known, 39.2% of all websites
- WordPress.org, Requirements (read 2026-11-12): PHP 8.3 or greater recommended; in legacy environments WordPress also works with PHP 7.4 and later, versions that have reached end of life
- php.net, News, Security advisory: Critical remote code execution vulnerabilities, update now, 21 October 2026 (read 2026-11-12): PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix CVE-2026-109618 and CVE-2026-109619; all installations serving web requests at risk, highest for mod_php; interim measures; PHP 8.6.0 RC4 the same day
- NIST NVD, CVE-2026-109618 and CVE-2026-109619, published 21 October 2026 (read 2026-11-12 through the NVD API): out-of-memory longjmp leaving request memory uninitialized, and global state pointing into freed request memory, both leading to remote code execution; PHP's CVSS 4.0 score 9.2; NVD CVSS 3.1 scores 9.8 and 8.1; added to CISA KEV on 26 October 2026
- NIST NVD, CVE-2012-1823 (read 2026-11-12 through the NVD API): php-cgi before 5.3.12 and 5.4.2 took query strings without an equals sign as command-line options, allowing remote code execution; in CISA KEV since 25 March 2022
- NIST NVD, CVE-2019-11043 (read 2026-11-12 through the NVD API): in certain PHP-FPM setups of 7.1 before 7.1.33, 7.2 before 7.2.24 and 7.3 before 7.3.11, FPM writes past its buffers into FastCGI protocol data, allowing remote code execution; CVSS 3.1 9.8 from NVD, 8.7 from PHP; in CISA KEV since 25 March 2022
- NIST NVD, CVE-2024-4577 (read 2026-11-12 through the NVD API): with Apache and PHP-CGI on Windows, Best-Fit character replacement in certain code pages lets characters be read as PHP options; 8.1 before 8.1.29, 8.2 before 8.2.20, 8.3 before 8.3.8; CVSS 9.8; in CISA KEV since 12 June 2024
- PHP Manual, FPM configuration (read 2026-11-12): an exposed FastCGI endpoint allows arbitrary code execution; prefer a Unix socket on the same host; with TCP, listen.allowed_clients is unset by default and then accepts any address; containers should not publish the FPM port; pools are not a security boundary
- Composer documentation, Introduction and Command-line interface (read 2026-11-12): dependency management per project in a vendor directory; composer audit checks installed packages against security advisories through the Packagist.org API