Skip to content
Introducing AI OS for Business & School — our most powerful products yet.Explore →
App Corp iconApp Corp
Strategy
TCO
ROI
technical debt

Cost of Staying on PHP vs Re-platforming

The Real Cost of Staying on PHP: Patching vs Re-platforming to a Modern JavaScript Stack

AE

App Corp Engineering

Editorial Team

November 3, 202613 mins read
13 mins readRead time
1,237Words
Nov 2026Published

This free scan includes a PHP2Shell runtime check

Fixed in 8.5.12, 8.4.27, 8.3.36, 8.2.35. Reviewed 27 October 2026.

What to do now
App Corp Engineering·Editorial Team
Last updated 2026-11-03

What is Cost of Staying on PHP vs Re-platforming?

The cost of staying on PHP is the three-year total cost of ownership of a legacy stack: emergency patch events, routine maintenance, plugin and licence fees, hosting and security tooling, performance and delivery drag, forced runtime upgrades and the risk-adjusted cost of breaches and downtime. It is usually far larger than the visible licence lines suggest.

The cost of staying on legacy PHP or WordPress is mostly hidden: emergency patch cycles, plugin licences, maintenance hours, slow delivery, performance-related revenue loss and breach risk. PHP2Shell made those costs visible in a single week — emergency weekends, rotated secrets, incident reviews and, for some organizations, sites taken offline. IBM's 2025 research puts the global average cost of a data breach at about US$4.4 million, so even a small probability of a breach is a real budget line. Our transparent three-year total cost of ownership model shows that for revenue-critical sites and applications, re-platforming to Payload CMS or TypeScript and Node.js typically breaks even within 12 to 24 months, while for simple, low-risk sites staying on well-managed WordPress can still be the cheapest option.

Why It Still Works Is Expensive

Legacy systems rarely fail all at once; they get more expensive every year in ways that never show up as one budget line. Developers spend more time working around the system than improving it, each runtime or plugin update becomes a mini-project, security becomes reactive as you wait for the next advisory and hope you can patch in time, and opportunities such as new features, AI capabilities and better performance get postponed indefinitely. Then an event like PHP2Shell arrives and everything stops while the team firefights, often for dozens of senior engineering hours before anyone counts lost sales or reputational damage.

The Seven Hidden Cost Lines

Seven cost lines carry the real money. Emergency patch events bring out-of-hours work, agency call-outs, testing and rollbacks, and they are almost never budgeted. Routine maintenance covers PHP, core, plugin and theme updates plus compatibility fixes, and only partly shows up. Plugin and licence fees for premium plugins, page builders, security suites and backup tools are visible, as are hosting and security tooling such as managed WordPress hosting, a WAF, malware scanning and uptime monitoring. The four that stay invisible are performance drag, where slower pages cost conversions and SEO visibility; delivery drag, where features take longer because developers avoid fragile code; and risk exposure, the probability times impact of breach, downtime and regulatory fines. Most budgets only see the licence and hosting lines, while the expensive four run underneath.

What PHP2Shell Cost Organizations

Consider what the week of 20 to 23 October 2026 required of a typical mid-sized business running WordPress and a custom PHP portal: triage and inventory of every PHP workload including forgotten staging servers; patching across servers and containers, with backports or extended support for end-of-life branches; secret rotation of database, payment and API keys because PHP2Shell can expose worker memory; compromise assessment of logs back to 20 October and earlier; business disruption, with government agencies in France, Denmark, Finland and the Netherlands taking sites offline; and compliance work documenting decisions for auditors, insurers and possibly regulators. For many teams that is dozens of senior engineering hours in a single week, and PHP2Shell is unlikely to be the last such event because AI-assisted research is speeding up bug discovery in old code.

A Transparent Three-Year TCO Model

The model below is illustrative for a revenue-critical marketing site plus a customer portal, and every number is an assumption you should replace with your own. It assumes a blended senior engineering rate of $100 per hour, a current stack of WordPress with 30 plugins plus a Laravel portal on PHP 7.4, three critical security events per year at 40 hours each, 20 hours per month of routine maintenance, $4,000 per year in plugin and security tooling, $6,000 per year of hosting against $4,800 for a modern CDN, Node or serverless and PostgreSQL stack, 8 hours per month of modern maintenance, and a one-off $60,000 re-platform for a combined Payload site and TypeScript portal. Three-year direct costs land at $163,000 to stay against $113,400 to re-platform, so re-platforming saves about $50,000 in this example and breaks even in roughly 18 to 24 months. The forced upgrade line — $25,000 to move from PHP 7.4 to 8.4 across Laravel majors — is the one budgets forget, because staying on PHP 7.4 is not free.

mermaid
xychart-beta
    title "Cumulative cost (illustrative, USD thousands)"
    x-axis [Q0, Q2, Q4, Q6, Q8, Q10, Q12]
    y-axis "USD (k)" 0 --> 180
    line [0, 27, 54, 82, 109, 136, 163]
    line [60, 69, 78, 87, 96, 105, 113]

Note

The forced upgrade line is often forgotten: staying on PHP 7.4 is not free, because that upgrade still has to happen eventually.

Risk-Adjusted Cost

Direct costs ignore the biggest number: risk, expressed as expected annual loss equal to the probability of a significant incident times the cost of that incident. IBM's Cost of a Data Breach Report 2025 puts the global average at about US$4.4 million, with considerably higher averages in the United States and in healthcare. A smaller business sees smaller absolute numbers, but proportionally a breach can be existential once incident response, notification, legal fees, lost customers and downtime are counted. If a legacy PHP estate carries even a 2 percent annual chance of a $500,000 incident, that is $10,000 per year of expected loss, or $30,000 over three years, and halving that probability through modernisation puts another $15,000 in your favour. Downtime cost — revenue per hour times hours offline — stacks on top; organizations that pulled sites offline during PHP2Shell paid it directly.

The Upside: Revenue and Velocity

Modernisation is not only cost avoidance. Faster sites tend to convert better, Google's research on mobile speed has long shown bounce probability rising sharply as load time increases, and Core Web Vitals feed into Google's page experience signals, where static CDN-delivered Next.js pages typically perform very well; in App Corp's own healthcare work, a conversion-focused rebuild moved one clinic from 0.9 percent to 3.2 percent conversion. Typed TypeScript code, automated tests and CI/CD let teams ship features faster and more safely, with DORA research linking strong delivery performance to better organizational outcomes, while marketing teams can launch pages in Payload CMS without developer tickets or plugin conflicts. A modern stack also makes it practical to add AI agents, RAG knowledge systems and automation, which are hard to graft onto legacy PHP monoliths.

When Staying Is the Right Call

Staying on PHP or WordPress is reasonable when the site is simple, low-traffic and not revenue-critical; when you are on reputable managed hosting that patched PHP2Shell within hours; when you use few, well-maintained plugins on a supported PHP branch such as 8.3 or later; and when a custom PHP app is well tested on a modern framework with an active team. In those cases, patch, harden and monitor, then review again in 12 months.

Pro Tip

We would rather lose a project than give bad advice — if your estate meets all four conditions, patching and monitoring is genuinely the cheaper path.

How App Corp Prices Modernisation

App Corp uses fixed, outcome-based pricing, so you know the cost before work starts. It begins with a TCO and risk assessment lasting one to two weeks for a fixed fee: your real hosting bills, licences, maintenance hours, incident history, traffic and conversion data and compliance needs go into the model, and you get a board-ready business case whether or not you proceed with us. The second step is choosing a path. WordPress moves to Payload CMS either through a Payload and Next.js starter with content, SEO and redirects migrated, or through a bespoke content model with integrations and a design system. Custom PHP moves to TypeScript and Node.js either through a pre-built foundation with auth, RBAC, multi-tenancy and billing and your features ported, or through a re-architecture or strangler-fig migration phased to spread cost. Pre-built paths reduce the upfront investment because you are not paying to rebuild plumbing, and strangler-fig migrations spread cost over time while delivering value at each phase.

Sources and references

IBM's Cost of a Data Breach Report 2025 is at ibm.com/reports/data-breach. Recorded Future covers PHP2Shell exploitation at recordedfuture.com, CNBC reported government sites going dark at cnbc.com, and Wiz Research's PHP2Shell analysis is at wiz.io/blog/php2shell-php-rce. Google publishes Web Vitals guidance at web.dev/articles/vitals and page load statistics at thinkwithgoogle.com. DORA research lives at dora.dev, PHP supported versions at php.net/supported-versions.php, and Patchstack's State of WordPress Security at patchstack.com/whitepaper/state-of-wordpress-security-in-2025.

Three-year total cost of ownership: stay versus re-platform

Cost lineStay on PHP (3 years)Re-platform (3 years)
Urgent security events (3 × 40h × $100 × 3 yrs)$36,000$7,200 (assume 80% fewer urgent events)
Routine maintenance (20h vs 8h per month)$72,000$28,800
Plugins, licences and security tooling$12,000$3,000
Hosting$18,000$14,400
Forced PHP and framework upgrade (7.4 to 8.4, Laravel majors)$25,000—
Re-platform project—$60,000
Subtotal (direct costs)$163,000$113,400

Re-platforming saves about $50,000 over three years in this example and breaks even in roughly 18 to 24 months.

A single breach can erase years of modernisation savings According to IBM Cost of a Data Breach Report 2025, US$4.4 million global average cost of a data breach. Regional and industry averages run higher, and small organizations face proportionally serious impact once incident response, notification, legal fees, lost customers and downtime are counted.

Conclusion

Stop guessing about what legacy PHP costs. Put your real numbers into a three-year model, price the breach you hope never happens, and compare both against a re-platform before deciding on instinct alone. For revenue-critical systems the math usually favours modernisation within 18 to 24 months; for simple, low-traffic sites, patching and monitoring stays the cheapest honest answer. App Corp offers a fixed-fee TCO and risk assessment that produces a board-ready recommendation whether or not you choose to build with us.

Frequently Asked Questions

Key Takeaways

  • The real cost of legacy PHP is hidden in emergency patches, maintenance hours, performance drag and breach risk
  • PHP2Shell turned those hidden costs into emergency weekends, rotated secrets and sites taken offline
  • IBM puts the global average data breach at about US$4.4 million, so breach probability belongs in the budget
  • The 3-year model shows $163,000 to stay against $113,400 to re-platform, breaking even in 18 to 24 months
  • For simple low-risk sites, well-managed WordPress can still be the cheapest option
Ready to migrate?

Order a WordPress to Payload CMS migration

If this series convinced you to move off WordPress, order the migration directly on Contra. A fixed-scope engagement covering the site rebuild, content and media migration, technical SEO foundations, testing, and handover — delivered by the same engineering team that wrote these guides.

$250 fixed priceUp to 3 weeks deliveryUp to 10 pages migrated
Order on Contra

We value your privacy

We use strictly necessary cookies to keep our site secure and functional. With your consent, we also use performance cookies to understand how you interact with our site, and functional cookies to remember your preferences. Read our full Cookie Policy