Free, independent guides since 2010

Code

Which PHP version should your site run in 2026?

PHP versions and their support dates in 2026: why running an end-of-life PHP version is risky and how to upgrade your website safely.

<guide section="Code" type="guide" read="2 min"/>

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

VersionReleasedSecurity support until
PHP 8.1November 2021Ended 31 December 2025
PHP 8.2December 202231 December 2026
PHP 8.3November 202331 December 2027
PHP 8.4November 202431 December 2028
PHP 8.5November 202531 December 2029
PHP 8.6November 202631 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

  1. Make a full backup of files and database.
  2. Update your CMS core, theme and plugins.
  3. Switch a staging copy (or a subdomain) to the new PHP version and click through your important pages and forms.
  4. Check the error log for warnings and deprecations.
  5. 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.