DeliverOpen sourcedemo site

PHP Upgrade Lab

We have to move our site to a newer PHP version, and we cannot afford to find out in production what breaks.

How I think

Roll out in an order where every step in between still works.

How I built it

I designed the process and built it with AI coding agents (Claude Code), and I can walk you through every decision. It is a safe platform upgrade and staged rollout: a Docker sandbox runs the old and new PHP side by side, checks catch what breaks, and a Claude Code skill runs the whole process. I ran it end to end on a real site, from PHP 7.4 to 8.4.

Stack

  • Docker sandbox running old and new PHP side by side
  • Crawl that groups PHP errors by plugin and fails on fatals
  • PHPCompatibility static scan
  • Plugin audit against WordPress.org
  • Host API scripts
  • Claude Code skill

Key decisions

  1. Reproduce the site on the old and the new PHP side by side before touching production.
  2. Roll out dev to staging to production, in an order where every step in between still works.
  3. A fix that runs on both PHP versions ships before the switch. A release that needs the new PHP ships after it.
  4. An OPSEC check runs before anything is published.