PHP 7.2 end of life
PHP 7.2 reached end of life on 30 Nov 2020 and no longer gets security fixes.
What PHP 7.2 end of life means for your site
Security fixes for PHP 7.2 stopped on 30 Nov 2020, about 6 years ago. Any PHP vulnerability published since then is unpatched on PHP 7.2.
It was released on 30 Nov 2017, which gives it about 3 years of security support in total.
Newer PHP lines: 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5.
Magento, WordPress and Laravel all run on PHP, so an unsupported PHP sits underneath everything else. New PHP vulnerabilities stay unfixed on it, and before long the platform updates and plugins you do need stop installing on it.
PHP 8.3, 8.4 and 8.5 currently get security fixes. Move to the newest of these that your platform release supports.
How to upgrade from PHP 7.2
- Look up which PHP versions your Magento, WordPress or Laravel release supports. You may need to upgrade the platform first.
- Try the new PHP version on a staging copy. Extensions, plugins and custom code are where things usually break.
- Switch the web server, the command line and cron to the new version at the same time, then deploy.
Common questions about PHP 7.2
When does PHP 7.2 reach end of life?
PHP 7.2 stopped getting security fixes on 30 Nov 2020.
Is it safe to keep running PHP 7.2?
No. Vulnerabilities found in PHP 7.2 from now on won't be fixed. Plan the move to a supported PHP version as soon as you can.
How do I check which PHP version my site runs?
Run php -v on the server, using the same PHP your web server runs (hosts often have several), or look in your hosting control panel.
Get warned before support ends
Secure30 checks your server every 6 hours. It reads the PHP, Node.js, database and platform versions installed there and warns you 90 days before any of them loses security support. It also tells you when you've fallen behind on a patch release.
Other PHP versions
| Version | Status | Released | Bug fixes until | Security fixes until | Latest |
|---|---|---|---|---|---|
| PHP 8.5 | Supported | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 | 8.5.12 |
| PHP 8.4 | Supported | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 | 8.4.27 |
| PHP 8.3 | Supported | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 | 8.3.36 |
| PHP 8.2 | Ending soon | 8 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 | 8.2.35 |
| PHP 8.1 | End of life | 25 Nov 2021 | 25 Nov 2023 | 31 Dec 2025 | 8.1.34 |
| PHP 8.0 | End of life | 26 Nov 2020 | 26 Nov 2022 | 26 Nov 2023 | 8.0.30 |
| PHP 7.4 | End of life | 28 Nov 2019 | 28 Nov 2021 | 28 Nov 2022 | 7.4.33 |
| PHP 7.3 | End of life | 6 Dec 2018 | 6 Dec 2020 | 6 Dec 2021 | 7.3.33 |
| PHP 7.2 | End of life | 30 Nov 2017 | 30 Nov 2019 | 30 Nov 2020 | 7.2.34 |
| PHP 7.1 | End of life | 1 Dec 2016 | 1 Dec 2018 | 1 Dec 2019 | 7.1.33 |
| PHP 7.0 | End of life | 3 Dec 2015 | 4 Jan 2018 | 10 Jan 2019 | 7.0.33 |
Dates from endoflife.date, last synced 9 Nov 2026. Check the vendor's own lifecycle page before you plan an upgrade around these dates.
