PHP 8.2 reaches end of life on 31 December 2026: after that date, the PHP project will release no further security fixes for it. If your website still runs PHP 8.2, plan a move to PHP 8.4 or 8.5 (or at least 8.3) before the end of the year, once you have checked that your CMS, theme and plugins support it.
Your site will not go offline on 1 January. What stops is maintenance: any flaw found in PHP 8.2 from then on stays unfixed upstream. The good news is that, on most shared hosting, switching versions takes a few clicks. This guide shows how to check your version, which one to pick, and where the setting lives at common hosts.
The PHP support timeline
Each PHP branch gets two years of active support, then a further two years of security-only fixes. As of 12 November 2026:
| Branch | Released | Security fixes until | Status |
|---|---|---|---|
| PHP 8.1 | 25 Nov 2021 | 31 Dec 2025 | End of life |
| PHP 8.2 | 8 Dec 2022 | 31 Dec 2026 | Security fixes only, ending soon |
| PHP 8.3 | 23 Nov 2023 | 31 Dec 2027 | Security fixes only |
| PHP 8.4 | 21 Nov 2024 | 31 Dec 2028 | Active support until 31 Dec 2026 |
| PHP 8.5 | 20 Nov 2025 | 31 Dec 2029 | Active support |
The latest PHP 8.2 release at the time of writing is 8.2.35, published on 21 October 2026.
How to check which PHP version your site uses
In your hosting control panel
Almost every host shows the PHP version in its dashboard. The paths for some popular hosts are listed further down.
In WordPress
Go to Tools > Site Health, open the Info tab and expand Server. The PHP version is listed there.
From the command line
If you have SSH access, php -v prints the version used on the command line. Note that the web server can use a different version from the CLI, so confirm it in the control panel too.
From the outside
When PHP's expose_php setting is on (the default), responses include an X-Powered-By header such as PHP/8.2.35. Many hosts hide it, which is good practice, so a missing header tells you nothing about the real version.
Check your domain for free. AttackScout spots the PHP version when your site shows it publicly, and tells you when its support ends. Run the free check
Which version should you move to?
It depends on what runs on top of PHP:
- WordPress recommends PHP 8.3 or newer. Most maintained plugins follow, but an abandoned plugin can hold you back.
- Drupal 11 requires at least PHP 8.3. Drupal 10 itself reaches end of life on 9 December 2026, so a Drupal site may need both upgrades.
- Custom applications and frameworks: ask your developer to test the target version. The PHP manual publishes a migration guide for each release listing the backward-incompatible changes.
If your site works on it, PHP 8.4 is a sensible default: two years of security fixes ahead and broad compatibility. PHP 8.5 gives you the longest runway. PHP 8.3 is acceptable but only buys you twelve months.
Before you switch
- Back up your files and database.
- Update your CMS, theme and plugins. Current versions are far more likely to support newer PHP.
- Test on a staging copy if your host offers one, or switch at a quiet time so you can roll back quickly if something breaks.
How to change PHP version at your host
Menu names below were checked against each provider's official help on 12 November 2026. Interfaces change; if a label differs, look for a "PHP" section in your hosting dashboard.
Hostinger (hPanel)
- Go to Websites, hover over your site and click Manage site.
- Open PHP Configuration in the sidebar.
- Pick the version and click Update.
- Wait a couple of minutes, then confirm the new version.
Hostinger offers PHP 8.2 to 8.5 for new sites, with 8.3 as the default, and applies patch releases automatically. The selected version applies to every website on the plan. Downgrading is only possible within the same login session, so test promptly. On Hostinger's cPanel plans, the setting is under Software > Select PHP Version instead.
IONOS (Linux hosting)
- Log in and open Menu > Hosting, then select the contract.
- Click Manage in the PHP tile.
- Click the domain you want to change, or tick several and use Select PHP version at the top of the table.
- Choose the version and click Save.
Check your site straight away and switch back if needed. On Managed Hosting for WordPress and MyWebsite, IONOS manages the version for you. IONOS also sells "PHP Extended Support" for older branches; as of 12 November 2026, its public page does not yet list PHP 8.2.
Other cPanel hosts
Many cPanel hosts provide a Select PHP Version tool (CloudLinux) or the MultiPHP Manager, both usually in the Software section. Choose the version and apply it. If the change does not seem to take effect, look for an .htaccess rule (AddHandler or AddType) that forces another version.
After the switch
- Click through your key pages, contact form and, for a shop, the checkout.
- Keep an eye on your host's error logs for a few days.
- Confirm the version again in your dashboard or in WordPress Site Health.
Frequently asked questions
Will my site stop working on 1 January 2027?
No. PHP 8.2 keeps running. It simply stops receiving security fixes from the PHP project.
Will my host upgrade PHP for me?
Not necessarily. Some hosts move a default version forward over time; others keep whatever you chose. Check your setting rather than assume.
Is it safe to jump straight to PHP 8.5?
If your CMS and plugins support it, yes, and you get support until the end of 2029. If you are unsure, PHP 8.4 is a strong middle ground.
When is the next PHP deadline?
PHP 8.3 reaches end of life on 31 December 2027. Our deadlines calendar keeps every date in one place.
Check your domain for free. In under a minute and without an account, AttackScout looks at your site the way the internet sees it: software versions, certificate, security headers and email setup. Then it tells you what to fix first. Check my domain
You can also test your security headers or see the full list of our checks.
Sources
Accessed 12 November 2026.
- php.net, Supported Versions: https://www.php.net/supported-versions.php
- endoflife.date, PHP: https://endoflife.date/php
- php.net, Core php.ini directives (
expose_php): https://www.php.net/manual/en/ini.core.php - php.net, Migrating from PHP 8.2.x to PHP 8.3.x: https://www.php.net/manual/en/migration83.php
- WordPress.org, Requirements: https://wordpress.org/about/requirements/
- WordPress.org, Site Health screen: https://wordpress.org/documentation/article/site-health-screen/
- Drupal.org, PHP requirements: https://www.drupal.org/docs/getting-started/system-requirements/php-requirements
- Drupal.org, Drupal core release schedule: https://www.drupal.org/about/core/policies/core-release-cycles/schedule
- Hostinger, How to change the PHP version of your hosting plan: https://www.hostinger.com/support/1575755-how-to-change-the-php-version-of-your-hosting-plan
- Hostinger, How to change the PHP version on cPanel: https://support.hostinger.com/en/articles/4667467-how-to-change-the-php-version-on-cpanel
- IONOS, Displaying or changing PHP versions: https://www.ionos.com/help/hosting/managing-php-versions-in-the-control-panel/displaying-or-changing-php-versions/
- IONOS, PHP Extended Support: https://www.ionos.com/hosting/php-extended-support