PHP is the programming language that runs WordPress and many other websites. Like any software, each version has a lifespan. When a version reaches the end of its life, it stops receiving fixes, including security fixes. This article explains how to choose a version and how to change it safely.
Why the version matters
The PHP project says that running a version past its end of life may expose you to security vulnerabilities and bugs that have been fixed in more recent versions. Newer versions are also maintained for longer. Staying on an old one leaves your site open to problems that others have already solved.
Which versions are supported today
This table comes from PHP's supported versions page, which showed 20 October 2026 as the current date when we checked.
| Version | Released | Active support ends | Security fixes end | Status |
|---|---|---|---|---|
| 8.5 | 20 Nov 2025 | 31 Dec 2027 | 31 Dec 2029 | Active support |
| 8.4 | 21 Nov 2024 | 31 Dec 2026 | 31 Dec 2028 | Active support |
| 8.3 | 23 Nov 2023 | 31 Dec 2025 | 31 Dec 2027 | Security fixes only |
| 8.2 | 8 Dec 2022 | 31 Dec 2024 | 31 Dec 2026 | Security fixes only |
Versions 8.1 and older are past the end of their life. PHP lists 8.1 as ending on 31 December 2025, 8.0 on 26 November 2023 and 7.4 on 28 November 2022.
Dates change as new versions arrive, so check the official page before you decide. We re-check this article regularly.
What WordPress recommends
WordPress's requirements page recommends PHP version 8.3 or greater. It also recommends MariaDB 10.11 or greater, or MySQL 8.0 or greater, and a host that supports HTTPS.
How to choose
- If you are on 8.1 or older: plan to upgrade now. Your version no longer gets fixes.
- If you are on 8.2: security fixes end on 31 December 2026, so schedule a move soon.
- If you are on 8.3 or newer: you are in good shape. Move to 8.4 or 8.5 when your plugins and theme confirm support.
- If you run old plugins or a custom theme: test first. Code written years ago may not run on a new version.
The newest version is not always the best first choice. Plugin and theme makers need time to test, so pick the newest version that all your software supports.
How to change your PHP version safely
- Back up. Take a full backup of your files and database. See why website backups matter.
- Update everything first. Update WordPress, plugins and your theme, using how to update safely. Many compatibility problems are fixed by updates.
- Remove what you do not use. Delete unused plugins and themes so that nothing untested remains.
- Switch the version. In cPanel, PHP versions are chosen with the MultiPHP Manager, which cPanel lists in its documentation under Software. Server Salad plans let you choose your PHP version, as listed in what is included.
- Test. Visit your home page, a post, your contact form and, if you have a shop, the checkout. Log in to the WordPress dashboard.
- Roll back if something breaks. Switch back to the previous version, then find out which plugin or theme needs an update.
Common problems
- A white screen or critical error after switching. A plugin or theme does not support the new version. Switch back, then update or replace it.
- Warnings at the top of pages. Some old code uses features that were removed or changed. Update the plugin or ask its developer.
- A feature stops working but there is no error. Check your site's error log or ask your host. Our website errors guide explains common messages.
FAQ
Can I skip versions?
Yes, you can move from 8.1 straight to 8.4, for example. PHP publishes a migration guide for each step, so read the ones you skip, and test the same way.
Will upgrading PHP make my site faster?
Possibly, but we have not measured it for your site and speed depends on many things, so measure before and after. See Core Web Vitals explained.
Who can help me switch?
If you are unsure, contact our team before you change anything.
