New
← All guides

Guide · Last updated: November 2026

Need to Upgrade PHP? Here's How to Do It, or Get Help

Old PHP versions stop getting security fixes, and hosts now charge extra to keep them running. Here's how to upgrade safely, or we can do it for you.

Why old PHP is a problem

  • It's no longer patched. Each PHP version gets security fixes for a limited time. After that, new security holes stay open for good. In October 2026, PHP2Shell (CVE-2026-109618), a flaw that let attackers run their own code on a server, was fixed only in PHP 8.2 to 8.5.
  • It costs money to keep. Hosts now charge a monthly "PHP Extended Support" fee for outdated versions, with no end date.
  • It's already out of date. PHP 8.1 and older get no fixes at all. PHP 8.2 stops on 31 December 2026, 8.3 at the end of 2027, 8.4 at the end of 2028.
HostFee for outdated PHP
IONOS$15.62 to $23.58 a month for PHP 5.x to 8.0
GoDaddyA paid add-on, added automatically at renewal
FasthostsFrom £5.28 (ex VAT), more for older versions

Sources: IONOS, GoDaddy, Fasthosts, php.net supported versions, php.net news. Checked 22 November 2026.

How to upgrade PHP safely

  1. Back up the site and the database. Never upgrade on the live site first: if something breaks, visitors see it.
  2. Make a copy and upgrade that. A staging site from your host, or the site running on your own machine.
  3. Switch the copy to the new PHP version. With ForgeKit (our free Windows tool) you can run the same site on two local domains with two PHP versions at once, so you can compare old and new side by side.
  4. Let tools do the bulk of the work.Rector rewrites most version changes automatically, and AI coding assistants catch a lot of stray issues. Review every change they make.
  5. Upgrade in steps. From PHP 5, go to 7.4 first. Test everything, commit, then move from 7.4 to 8.x.
  6. Then switch the live site to the version you tested, and keep the backup until you're sure.

WordPress

Usually no code to touch. From the admin, update WordPress, every plugin and the theme; replace plugins that are no longer maintained. Then change the PHP version in your hosting control panel and check the site (Tools → Site Health shows the version in use).

Laravel

Newer PHP usually means a newer Laravel too. Follow Laravel's upgrade guide one major version at a time, alongside the PHP upgrade.

Or let us do it, for a fixed price

  • Free check: send your website address and we'll tell you what's involved and a fixed price.
  • Safe: we upgrade a copy first; your live site isn't touched until it works.
  • Done: we switch the live site with you and help you cancel any extended support fee.
Your sitePrice
WordPress siteFixed quote after the free check
Small custom PHP siteFixed quote after the free check
Larger app or framework (Laravel, CodeIgniter, ...)Fixed quote after the free check

Get a free check and a fixed price

What's happening? tick any that apply
Add details (optional)

Or email forgekit.tools@gmail.com. No obligation. ForgeKit is run by Stoian Works Ltd (UK); Privacy Notice.

Frequently asked questions

Why should I upgrade PHP?

Old PHP versions no longer get security fixes, so newly found holes stay open, and many hosts charge a monthly extended support fee to keep them running. PHP 8.1 and older get no fixes at all; PHP 8.2 stops on 31 December 2026.

Which PHP version should I upgrade to?

PHP 8.3 or newer. PHP 8.3 gets security fixes until 31 December 2027 and PHP 8.4 until 31 December 2028.

Will upgrading PHP break my site?

It can, through old plugins, themes or custom code. Back up first, upgrade a copy rather than the live site, go one major version at a time and test before switching the live site.

What is PHP Extended Support?

A paid add-on from your web host that keeps patching a PHP version after the PHP project stops supporting it. IONOS charges $15.62 to $23.58 a month for PHP 5.x to 8.0; moving to a supported version ends the fee.