PHP 8.2 End of Life: A Laravel Migration Checklist
Plan the December migration across FPM, queues and scheduled tasks.
PHP 8.2 reaches upstream end of life on December 31, 2026. If you maintain a Laravel application, use December to identify every process running PHP 8.2, choose a branch your locked dependencies support, and rehearse the switch on staging. The date applies to the PHP project's security support. A hosting provider or Linux distributor may publish its own maintenance commitments for a particular package.

What changes on December 31?
Your application can still serve requests on January 1. The change concerns who maintains the interpreter when a new security issue is found. Active support for PHP 8.2 ended in 2024. Its remaining upstream security coverage ends this December, according to the official PHP support calendar. If your provider offers backported fixes, record the package source, coverage period and how you receive updates before relying on that arrangement.
Which PHP branch should a Laravel application target?
Start with the intersection of three lists: the PHP branches your framework version supports, the ones your production dependencies accept, and the ones your host supplies with the required extensions. Use the upstream deadline to compare the candidates that survive all three checks.
- PHP 8.3 has upstream security coverage through December 2027. It may provide a short bridge for an application whose dependencies constrain the upgrade. Budget for the next move.
- PHP 8.4 has security coverage through December 2028. It can be a practical target when the web runtime, queue extensions and vendor packages already support it.
- PHP 8.5 and 8.6 have security coverage through December 2029 and December 2030 respectively. Verify support for the exact framework release and extensions you deploy. For teams evaluating the newest branch, see the Rubic8 PHP 8.6 compatibility guide.
Why can php -v look right while the website still uses 8.2?
A shell, an FPM pool and a persistent worker can each use a different executable. On a multi-site VPS, a default CLI change can affect scheduled commands while leaving the domain's web handler untouched. Make one row in your deployment notes for each runtime below.
- Web requests. Inspect the domain's assigned PHP handler and match its socket or upstream to the running FPM pool. On staging, record PHP_VERSION and PHP_SAPI from a request in a private log.
- Scheduler. Inspect the actual cron entry or service command and its execution user. Record the absolute path to PHP or resolve it under that user's scheduled environment.
- Queues. Inspect the service definition and the running worker. A process started yesterday keeps its interpreter until it exits. Include Horizon if the application uses it.
- Deployments. Identify the interpreter used for Composer, Artisan and deployment hooks. Compare its loaded configuration and extensions with those required by the web process.

How to check the lock file before switching
Use a clean staging copy of the deployed revision with its existing composer.lock. The following example assumes a staging shell configured for the candidate runtime. Replace the illustrative version with the exact patch release you intend to test.
php -v
php --ini
composer prohibits php 8.5.0 --locked
composer check-platform-reqs --lock --no-dev
The first Composer command identifies constraints that prohibit the specified version. The second checks the production lock requirements against the real PHP interpreter and extensions running Composer. Run it through the candidate interpreter. If it runs on your laptop, the result describes your laptop. A configured Composer platform value can influence dependency resolution. The platform requirements check ignores that setting. See the Composer CLI reference.
If a locked package blocks the move, identify whether it is a direct requirement or a transitive dependency. Update the smallest appropriate set in a reviewed change, then repeat the checks using the resulting lock file. Preserve the previous release and lock file together so your rollback can restore both.
What should pass before the production change?
Run the application tests and exercise a request that opens a database connection, signs in a test account and writes a disposable record. Dispatch a harmless job to a staging queue. Give the job a unique identifier, then check that the worker processed it once under the candidate PHP version. Trigger a harmless scheduled task under the scheduler's normal execution user. A green web response alone leaves two production paths untested.
Record the web error rate, response time and queue backlog before the change. Decide who can switch the domain back to its previous pool, restore the previous release and restart workers on the previous interpreter. Keep unrelated schema changes out of this rehearsal so the rollback has fewer dependencies. Review Laravel's deployment guidance and the Rubic8 queue worker guide for the long-running processes your application uses.
Does upgrading PHP require upgrading Laravel on the same day?
Check your installed framework version and its supported PHP range. If the target is already supported throughout the dependency tree, you can test the runtime change on its own. If the framework is the blocker, separate the framework upgrade and runtime switch when a supported intermediate combination exists. Assign each change its own test results and rollback point.
What counts as a completed migration?
Keep four pieces of evidence: the exact PHP version serving a request, the version processing a queue job, the version executing a scheduled command, and the platform check from the deployed lock file. Record the next upstream support deadline next to the release. This gives the next maintainer a way to verify the running application months after the change.
Rubic8 Editorial Team
Editorial Team
Rubic8 creates practical guides and free tools for developers, webmasters, and digital publishers. Our fast-changing technical content is reviewed against current primary documentation before publication.