PHP 8.2 Security Support Ends in 2026: What Laravel Developers Need to Know

Published on October 21st, 2026 by Ram Niwas Sharma

PHP 8.2 Security Support Ends in 2026: What Laravel Developers Need to Know

If your website or business application runs on PHP 8.2, it is time to plan what comes next. The PHP project currently lists 31 December 2026 as the end of security support for PHP 8.2. That date is not today, but it is close enough that teams should check their runtime, framework and dependencies before the deadline.

For Laravel applications, the decision is not just “change PHP and move on.” Your Laravel release, Composer dependencies, extensions and application code all need to be compatible with the target PHP version. You also need to distinguish PHP runtime support from Laravel framework support: upgrading one does not automatically bring the other back into support.

This guide explains the dates, the Laravel/PHP compatibility picture, and what engineering teams should consider when planning the next step. It does not walk through the upgrade commands; official Laravel documentation is linked below.

When does PHP 8.2 stop receiving security fixes?

According to the official PHP supported versions schedule, PHP 8.2 reaches the end of its security-support period on 31 December 2026.

PHP branches receive active support first, followed by a period in which only security issues are addressed. Once a branch reaches end of life, the PHP project no longer provides official security fixes for that branch. That means a newly discovered vulnerability may not receive an upstream patch for PHP 8.2 after the support window closes.

This is why the deadline matters to production systems. A server may continue running PHP 8.2 after the date, but “it still runs” is not the same as “it is receiving upstream security fixes.”

PHP 8.3 is supported for security fixes until 31 December 2027, while PHP 8.4 is scheduled through 31 December 2028. Choose a target based on your application and dependency compatibility, and verify the official schedule when making the decision.

Which Laravel versions support PHP 8.2?

Laravel’s release policy publishes both the supported PHP range and the framework’s own bug-fix and security-fix windows. These are separate timelines from PHP’s support schedule.

Laravel version Supported PHP versions Laravel security fixes until What it means
Laravel 10 PHP 8.1–8.3 4 February 2025 Security support has ended.
Laravel 11 PHP 8.2–8.4 12 March 2026 Security support has ended.
Laravel 12 PHP 8.2–8.5 24 February 2027 Still in its security-fix window as of this article’s date.
Laravel 13 PHP 8.3–8.5 17 March 2028 Requires PHP 8.3 or newer and has a later framework security window.

Dates and PHP ranges are taken from the official Laravel release notes. Always check the documentation for your installed major version and its current maintenance status.

The last Laravel release line that supports PHP 8.2

Laravel 12 is the newest Laravel major version that supports PHP 8.2. Laravel 13 raises the minimum PHP requirement to 8.3.

That does not mean every Laravel 12 application must move to Laravel 13 immediately just because it moves from PHP 8.2 to PHP 8.3. Laravel 12 supports PHP 8.3 too. However, teams should consider the full support horizon: Laravel 12’s security-fix window ends on 24 February 2027, only a short time after PHP 8.2’s scheduled end-of-security-support date.

If the goal is to keep both the PHP runtime and the Laravel framework on supported versions for longer, Laravel 13 with PHP 8.3 or newer is the more forward-looking target, provided the application and its third-party packages are compatible.

Read the official Laravel 12 release notes, Laravel 13 release notes, and Laravel 13 upgrade guide for the authoritative compatibility requirements and framework changes.

Why changing PHP alone may not be enough

A Laravel application is more than the PHP executable installed on the server. Its compatibility depends on several connected layers.

1. Laravel itself has a support lifecycle

An application can run on a PHP version that is still supported while using a Laravel release whose own security-fix window has ended. For example, Laravel 11 supports PHP 8.3, but Laravel 11’s framework security support ended on 12 March 2026. Changing that application’s runtime to PHP 8.3 does not restart Laravel 11’s support period.

Likewise, staying on Laravel 12 while moving to PHP 8.3 may be a valid compatibility choice, but it does not extend Laravel 12’s published security-support date.

2. Composer packages can restrict the target version

Authentication libraries, payment integrations, queue tooling, admin panels, monitoring packages and other Composer dependencies may impose their own PHP or Laravel constraints. A framework release may support PHP 8.3 while one of the application’s installed packages does not support the chosen combination.

The reverse can also happen: a package may require a newer PHP version or Laravel major version than the application currently uses. Compatibility must be evaluated across the actual dependency set—not inferred from the Laravel version alone.

3. Custom application code can behave differently on a newer runtime

Legacy code, outdated dependencies and assumptions about PHP behaviour can cause warnings or errors after a runtime change. Test coverage, logs and realistic staging checks help identify these issues before they affect users.

This is particularly important for mature applications with scheduled tasks, queues, payment flows, external APIs and long-running workers. A homepage loading successfully is not enough to confirm that the entire system is healthy.

4. Your hosting environment needs to match

The PHP version used by the command line may differ from the version used by PHP-FPM or the web server. Queue workers, scheduled commands, deployment pipelines and local development environments can also run different runtimes.

Treat the application’s runtime as an environment-wide concern, not simply a setting on one server screen.

What should teams do if their Laravel application uses PHP 8.2?

The right plan depends on the Laravel major version and the application’s constraints.

  • Laravel 12 on PHP 8.2: Laravel 12 supports PHP 8.2, but PHP 8.2’s security-support deadline is approaching. Evaluate PHP 8.3 compatibility and decide whether to move to Laravel 13 as part of the same planning cycle.
  • Laravel 12 on PHP 8.3: This is within Laravel 12’s documented PHP range. You do not have to upgrade to Laravel 13 solely to run PHP 8.3, but should plan for Laravel 12’s framework security-support end date in February 2027.
  • Laravel 11 or older: Check the framework’s maintenance status as well as PHP compatibility. For Laravel 11, security support has already ended; moving to a supported PHP version alone does not address that framework lifecycle risk.
  • A legacy application with package constraints: Build a compatibility plan around the application’s real dependency tree, custom code and operational requirements. The target may need to be reached in stages rather than through a runtime change alone.

Do not assume that every project should jump directly to the newest major version without assessment. The right target depends on the codebase, package support, test coverage, deployment setup and business risk. But do not let that assessment become a reason to postpone planning indefinitely.

Official Laravel upgrade resources

If your team is considering Laravel 13, use Laravel’s official documentation as the source of truth:

These references cover the framework and runtime policies. Your application’s own dependency and test results determine how much work the transition will require.

Need help upgrading your Laravel application?

A PHP or Laravel upgrade can be straightforward for a small, well-tested application, but more complex systems may depend on older packages, custom integrations, queues, scheduled tasks and production-specific behaviour. A careful upgrade plan should protect business workflows as well as framework compatibility.

If your team needs help moving from an older Laravel release to a supported version, hire LaraTribe to assess and upgrade your Laravel project. Our Build With Us service supports Laravel application development and modernization, including planning work around legacy code, maintainability, performance and security.

Tell us which Laravel and PHP versions you currently run, the packages your application relies on, and your target timeline. We can help assess the scope and identify a practical path toward a supported stack.

Frequently asked questions

Does PHP 8.2 stop working after 31 December 2026?

No. End of security support does not automatically stop PHP 8.2 from executing applications. It means the PHP project’s official security-fix support ends, leaving systems exposed to the risk of vulnerabilities that are not patched upstream.

What is the latest Laravel version that supports PHP 8.2?

Laravel 12 supports PHP 8.2. Laravel 13 requires PHP 8.3 or newer.

Do I need Laravel 13 just to upgrade from PHP 8.2 to PHP 8.3?

No. Laravel 12 supports both PHP 8.2 and PHP 8.3. However, Laravel 12’s security-fix support ends on 24 February 2027, so teams should consider the framework support timeline alongside the PHP runtime change.

Is upgrading PHP enough if my Laravel version is no longer supported?

No. PHP and Laravel have separate support lifecycles. A supported PHP runtime does not bring an end-of-support Laravel release back into security support.

Should every application target the newest PHP version immediately?

Not without checking compatibility. Review Laravel’s supported PHP range, Composer dependencies, PHP extensions, custom code and deployment environment. Choose a supported target that the application can run reliably, then plan future upgrades before the next support deadline.


Support dates in this article were checked against the official PHP and Laravel documentation on 21 October 2026. As these schedules can change, consult the official sources linked above before making a production upgrade decision.