If your website runs on WordPress or any other PHP software, mark one date in your calendar. PHP 8.2 end of life arrives on 31 December 2026. After that day, the PHP project stops releasing security fixes for the 8.2 branch, and any new flaw stays open on every site that still uses it.
This is not a small group. According to WordPress.org statistics quoted in September 2026, about 24.5% of WordPress installs that report their version still run PHP 8.2. This guide explains what the deadline means, which version to move to and how to upgrade without breaking your site.
Quick answer: PHP 8.2 receives security fixes only until 31 December 2026, according to php.net. Move to PHP 8.3 or 8.4 before then. Back up your site, test on a staging copy, update plugins and themes first, then switch the version in your hosting panel and check key pages.
PHP 8.2 end of life: the official dates
Every PHP version gets two years of active support and then two years of security fixes. After that, it reaches end of life with no more patches at all.
Here are the dates from the official PHP supported versions page:
| Version | Released | Security fixes until | Status in November 2026 |
|---|---|---|---|
| PHP 8.1 | November 2021 | 31 December 2025 | End of life |
| PHP 8.2 | 8 December 2022 | 31 December 2026 | Final weeks of fixes |
| PHP 8.3 | 23 November 2023 | 31 December 2027 | Security fixes only |
| PHP 8.4 | 21 November 2024 | 31 December 2028 | Active support |
| PHP 8.5 | 20 November 2025 | 31 December 2029 | Active support |
In other words, PHP 8.2 already gets only security patches. From 1 January 2027, it gets nothing.
Why the PHP 8.2 end of life matters
Your site will not stop working on 1 January. However, three real risks start to grow.
First, security. Attackers study each new PHP flaw, and sites on unpatched versions become easy targets. Our guide to the PHP2Shell attack shows how fast an exposed server can be taken over.
Second, compatibility. Plugin and theme authors test against newer versions first. Over time, updates may require PHP 8.3 or higher, so an old server can block important fixes.
Third, speed. Newer PHP versions usually run WordPress faster. A quicker site helps visitors, Core Web Vitals and, as a result, your rankings.
Which version should you choose?
WordPress.org lists PHP 8.3 or newer as its recommended version. So the real choice is between PHP 8.3 and PHP 8.4:
- PHP 8.3: the safe default for most sites. It is widely tested by plugins and has security fixes until the end of 2027.
- PHP 8.4: a longer runway, with security fixes until the end of 2028. Choose it if your plugins and theme confirm support.
- PHP 8.5: fine for testing, but some older plugins may still lag behind.
A simple rule works well. Pick the newest version that your critical plugins officially support. Also note that PHP 8.6 is due on 19 November 2026, so expect even more plugins to move forward in 2027.
How to check your current PHP version
You can find your version in a minute:
- In WordPress, go to Tools, then Site Health, then Info.
- Open the Server section and look for “PHP version”.
- Alternatively, open your hosting panel. Most hosts show the version on the PHP settings page.
If you see 8.2 or lower, plan your upgrade now rather than in late December.
A safe PHP 8.2 end of life upgrade checklist
Follow these steps in order. They prevent nearly every common problem.
- Take a full backup. Save both files and the database, and download a copy off the server.
- Update everything first. Update WordPress core, your theme and all plugins while you are still on 8.2.
- Remove what you do not use. Old, inactive plugins are the most likely to break.
- Test on staging. Many hosts offer a one click staging copy. Switch the staging site to PHP 8.3 or 8.4 first.
- Check key pages. Test the home page, a post, forms, checkout and the admin area.
- Turn on error logging. Look for warnings in the debug log for a day.
- Switch the live site. Change the version in your hosting panel, then clear all caches.
- Watch for a week. Check error logs, uptime and Search Console.
If something breaks, simply switch back to the old version for now. Then find the plugin that failed, update or replace it, and try again.
Free: AI Tools Cheat Sheet 2026
24 free tools sorted by task, a simple prompt formula and 10 prompts you can copy. We send the PDF straight to your inbox.
Sent! Check your inbox
We emailed the AI Tools Cheat Sheet to you. Not there in 2 minutes? Look in Spam or Promotions.
How to change PHP on common hosts
The exact menu names vary, but the idea is the same everywhere:
- Hostinger: hPanel, then Websites, then your site, then Advanced, then PHP Configuration.
- cPanel hosts: look for “Select PHP Version” or “MultiPHP Manager”.
- Managed WordPress hosts: the PHP setting usually sits in the site’s tools or settings page.
After the switch, clear your caching plugin and any CDN cache, so visitors see the site running on the new version.
What if you cannot upgrade in time?
Sometimes a custom plugin or an old theme holds you back. In that case, act on three fronts. Ask the developer for a fixed version. Meanwhile, add a web application firewall and keep strict backups. Some hosts and Linux vendors also sell extended support for old PHP versions, which can buy a few months.
However, treat that as a short bridge, not a plan. The longer a site runs on an unsupported version, the harder and riskier the move becomes.
Need help with the move?
Many site owners prefer to hand this job to a professional, especially for online stores. AllInfo AI offers web development and maintenance services, including PHP upgrades, speed fixes and security checks.
If you also want to automate routine site tasks, our guide to AI automation for small business shows where to start.
Also read: Fortinet and Palo Alto Firewall Breach: What k0t Did and How to Protect Your Network
FAQ
When is PHP 8.2 end of life?
PHP 8.2 receives its last security fixes until 31 December 2026, according to php.net. After that date it is end of life.
Will my website stop working after PHP 8.2 end of life?
No. It will keep running, but it will no longer receive security patches, so new flaws will stay open.
Which PHP version is best for WordPress?
WordPress.org recommends PHP 8.3 or newer. PHP 8.3 is the safest default, and PHP 8.4 gives a longer support window.
How do I check my PHP version in WordPress?
Go to Tools, then Site Health, then Info, and open the Server section.
Can upgrading PHP break my site?
It can if a plugin or theme is outdated. Back up first, test on staging and update everything before you switch.
