Skip to content
statance
MenuClose
← All PHP releases

Is PHP 5.2 end of life?

End of life

Yes. PHP 5.2 reached end of life on 6 January 2011 (15.9 years ago) and no longer receives security updates.

Released
2 November 2006
Active support ends
2 November 2008
Security support ends
6 January 2011
Latest release
5.2.17 · 6 January 2011
Long-term support
No

What this means for your servers

New vulnerabilities in PHP 5.2 are no longer fixed. Every newly published CVE that affects it stays open on your servers, and vulnerability scanners and compliance audits (PCI DSS, SOC 2, Cyber Essentials, ISO 27001) flag unsupported software as a finding. Upgrade, or isolate the machine until you can.

How to check if you’re running PHP 5.2

CLI

php -v

Which version the web server uses

php -r 'echo PHP_VERSION;' # or create a page that calls phpinfo() — and delete it afterwards

What to upgrade to

The newest supported release is PHP 8.5, supported until 31 December 2029.

Each PHP branch gets two years of active support and two years of security fixes. Install the new version alongside the old one (ondrej/php PPA on Ubuntu, Remi on RHEL-family), switch PHP-FPM pools or the Apache module one site at a time, and check deprecation warnings in your logs before you switch.

Find end-of-life software before an auditor does

The Statance agent reports the PHP version on every server it runs on and raises a security finding when it goes past end of life or falls behind the latest patch, along with known CVEs from OSV.dev and CISA’s Known Exploited Vulnerabilities list. Security monitoring is included in Pro and Business. How security monitoring works.

Other PHP releases

ReleaseStatusSecurity support ends
PHP 8.5Supported31 December 2029
PHP 8.4Supported31 December 2028
PHP 8.3Security fixes only31 December 2027
PHP 8.2Security fixes only31 December 2026
PHP 5.5End of life21 July 2016
PHP 5.4End of life14 September 2015
PHP 5.3End of life14 August 2014
PHP 5.1End of life24 August 2006
PHP 4.4End of life7 August 2008
PHP 5.0End of life5 September 2005

All PHP end-of-life dates →

FAQ

Is PHP 5.2 end of life?

Yes. PHP 5.2 reached end of life on 6 January 2011 (15.9 years ago) and no longer receives security updates.

When does PHP 5.2 reach end of life?

Security support for PHP 5.2 ended on 6 January 2011. Active support ended earlier, on 2 November 2008.

What should I upgrade PHP 5.2 to?

PHP 8.5 is the newest release that is still supported, with security updates until 31 December 2029. Each PHP branch gets two years of active support and two years of security fixes.

Can I keep running PHP 5.2 after end of life?

It keeps working, but new vulnerabilities will not be fixed, so every newly published CVE stays open on your server. Scanners and compliance frameworks (PCI DSS, SOC 2, Cyber Essentials) treat unsupported software as a finding.

What is the latest version of PHP 5.2?

The latest release in this cycle is 5.2.17, released on 6 January 2011.

Lifecycle data from endoflife.date/php, refreshed 17 November 2026. Vendors occasionally change dates; check the vendor’s own lifecycle page before making a compliance decision.

Stop tracking end-of-life dates by hand.

Statance flags end-of-life and vulnerable software on every server automatically.