PHP still runs a huge part of the web, including WordPress, Drupal and most of the CMSs we reviewed on our blogging pages. If your site runs on PHP, the version your server uses matters for speed and – above all – security. Our introduction to PHP and history of PHP explain the background; this page is about choosing a version today.
How PHP support works
Since PHP 8.1, every release branch gets two years of active support (bug and security fixes) followed by two years of security-only support. Support ends on 31 December of the relevant year. After that a version is “end of life”: newly discovered security holes are no longer fixed by the PHP project.
Support dates
| Version | Released | Security support until |
|---|---|---|
| PHP 8.1 | November 2021 | Ended 31 December 2025 |
| PHP 8.2 | December 2022 | 31 December 2026 |
| PHP 8.3 | November 2023 | 31 December 2027 |
| PHP 8.4 | November 2024 | 31 December 2028 |
| PHP 8.5 | November 2025 | 31 December 2029 |
| PHP 8.6 | November 2026 | 31 December 2030 |
Always check the official PHP supported versions page for the latest status.
Which version should you choose?
- New site: the newest version your CMS and plugins officially support – usually 8.4 or 8.5.
- Existing WordPress site: update WordPress, your theme and plugins first, then move to 8.3 or newer.
- Custom code: test with the newest version in a staging environment; deprecation warnings tell you what to fix.
- Brand-new releases: wait a few weeks after a major release such as 8.6 before using it in production, so extensions and plugins can catch up.
Upgrading safely in five steps
- Make a full backup of files and database.
- Update your CMS core, theme and plugins.
- Switch a staging copy (or a subdomain) to the new PHP version and click through your important pages and forms.
- Check the error log for warnings and deprecations.
- Switch the live site, and keep an eye on the logs for a few days.
Frequently asked questions
Where do I change the PHP version of my website?
Most hosting control panels, including cPanel and Plesk, have a PHP version selector. On a VPS or dedicated server you install the version yourself or ask your host.
Will a newer PHP version make my site faster?
Often, yes. PHP 8 brought large performance improvements over PHP 7, and newer releases keep optimising. The bigger win is still security: supported versions get patches.