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
- Reproduce the site on the old and the new PHP side by side before touching production.
- Roll out dev to staging to production, in an order where every step in between still works.
- A fix that runs on both PHP versions ships before the switch. A release that needs the new PHP ships after it.
- An OPSEC check runs before anything is published.
See the code on GitHub (opens in a new tab)
Shipped Oct 2026