Last updated: October 2026
Most PHP sites I am asked to review are not "hacked today." They are running an old PHP branch, a frozen Composer lockfile, or a mix of both - and nobody has mapped that stack to the current PHP supported versions calendar. This article is a working playbook for business owners, IT managers, and founders who need to respond to a PHP security advisory, plan a version upgrade, or decide whether to hire a freelance PHP developer - without treating every headline as proof that every application is compromised.
I am Arun Tyagi, a freelance PHP and Laravel developer based in Noida. I investigate advisories, plan upgrades on staging, and ship compatibility fixes. For service scope see PHP development. To start a review, use the contact form or book a call and include your current PHP version.
What this guide covers
- Why PHP support windows matter for real applications
- How to decide if an advisory applies to your stack
- Runtime upgrade vs code or dependency patch
- A staged remediation checklist
- Laravel, WordPress, and custom PHP notes
- What to do when you cannot upgrade this month
- When hiring a PHP developer is the cheaper path
Why PHP support status is a business issue
Each PHP release branch gets a fixed window of active bug fixes, then a shorter window of security-only fixes, then end of life. After EOL, the PHP project no longer ships patches for that branch. That does not mean an exploit is already running on your server. It does mean new issues disclosed later will not get an official fix on that version.
Keep three official pages open when you plan work:
- Supported versions - which branches still receive fixes
- Releases - changelogs and fixed versions
- Security documentation - secure configuration basics
As of late 2026, current 8.x branches (including newer lines such as 8.4 and 8.5) appear on the supported-versions table with published end dates. Always re-check that table before you quote dates to stakeholders - the calendar moves when new majors ship.
How to tell whether your application is affected
Skip the guesswork. Use evidence:
- Record the live PHP version. Run
php -von the server and confirm the web SAPI (PHP-FPM / Apache module) matches CLI. Hosting panels and Docker tags lie more often than people expect. - Read the advisory or release note. Note affected versions and the first fixed version. Prefer php.net (or the package vendor) over social summaries.
- Check application packages. For Composer apps, inspect
composer.lock. For WordPress, check core, plugins, and themes separately - a PHP bump and a plugin CVE are different problems. - Ask if the weak path is reachable. Unused modules, private networks, and disabled features can change priority even when a version is listed.
- Write the decision down. Not affected / patch packages / upgrade PHP / temporary controls until a maintenance window.
If you cannot complete that map in an afternoon, that is usually the moment to bring in a developer for a paid assessment instead of flipping PHP on production.
Runtime upgrade is not the same as fixing application code
Three levers, three different outcomes:
- Upgrade the PHP runtime when the interpreter branch is EOL or the advisory requires a newer PHP build.
- Patch application code when your own scripts use removed APIs, unsafe patterns, or break under stricter language rules.
- Update dependencies when Composer packages, SDKs, or CMS plugins are the vulnerable piece - even on a current PHP version.
Upgrading PHP alone will not fix a vulnerable plugin. Updating a plugin alone will not help if the host still runs an unsupported PHP branch with unpatched interpreter issues. Most real remediation plans touch more than one lever.
Remediation checklist I use on client projects
1. Inventory
PHP version per environment, framework version, extension list, cron entry points, queue workers, and who can deploy.
2. Advisory review
Match the advisory to runtime vs packages. Link the source in the ticket so later readers see the same evidence.
3. Compatibility check
Framework PHP support matrix, composer check-platform-reqs, and critical extensions (intl, gd, redis, imagick, and so on).
4. Backup
Files, database dump, and a restore test on a throwaway copy. No restore test means you do not have a backup.
5. Staging upgrade
Clone (sanitized) production data. Install the target PHP. Run login, checkout or billing paths, admin, APIs, and scheduled jobs.
6. Compatibility fixes
Clear deprecations and fatals. Replace removed functions. Adjust types and encoding issues. Prefer real fixes over permanent log silencing.
7. Apply the smallest safe change
Point release, package bump, or planned major jump - whichever closes the advisory without unnecessary churn.
8. Regression pass
Automated tests if they exist; otherwise a written smoke list. Watch error logs during the first production hours.
9. Controlled deploy
Low-traffic window when possible, confirm the live SAPI version, keep a rollback tag or previous PHP package ready.
Laravel, WordPress, and custom PHP apps
Same language, different failure modes. Do not assume one advisory hits every stack the same way.
- Laravel: confirm your Laravel minor supports the target PHP, update constraints, re-test queues and Horizon if used. Commercial context: Laravel development and hire a Laravel developer.
- WordPress: core PHP requirements, plugins, and themes update on separate clocks. An old plugin can break after a PHP bump even when WordPress core is fine. See WordPress development when plugin-safe upgrades are the bottleneck.
- Custom / legacy PHP: procedural apps and old MVC kits often need autoload fixes, removed-function replacements, and careful isolation of unmaintained modules. Treat these as engineering projects, not one-click host toggles.
If the product is a multi-tenant SaaS on Laravel, upgrade planning usually sits next to product work described on Laravel SaaS development.
When you cannot upgrade immediately
Vendor lock-ins, frozen release calendars, and unmaintained modules are real. Temporary options:
- Document the gap and the business reason for delay
- Reduce exposure (network rules, disable unused features)
- Isolate the legacy app if the host allows it
- Plan a ladder: current-branch point releases, then minor, then major
- Budget a rewrite only when staying put costs more than changing
Compensating controls buy time. They are not a permanent substitute for a supported PHP branch.
When to hire a freelance PHP developer
Hire help when any of these are true:
- Production is on EOL PHP and nobody owns the codebase day to day
- Staging breaks after a version bump and the stack trace is unclear
- Composer or plugin updates conflict with custom code
- Stakeholders need a written plan, risk notes, and a rollback path
- You want a code-level pass (injection risks, auth, uploads) alongside the version move
Need help fixing a PHP security issue or upgrading your PHP application? Contact Arun Tyagi to discuss your application, current PHP version, and remediation requirements: contact or book a call. Overview: PHP development services.
What an engagement usually looks like
- Intake: PHP version, framework, hosting access model, urgency, advisory links
- Assessment: affected pieces, recommended path, effort band
- Staging: upgrades, compatibility fixes, smoke tests
- Production support and verification
- Optional follow-up: dependency hygiene or a maintenance retainer
Cost depends on size and how far behind the stack is. After discovery you get a written estimate - not a single public price for every site. Broader bands: pricing.
Next step. Send your current PHP version, framework name, and whether you already have an advisory URL. I will reply with a practical investigation path.
Contact Arun Tyagi - Book a call - PHP development - Hire Laravel developer