PHP 8.6 was released on 19 November 2026, and some developers already want to move to it. If you own or manage a Laravel app, the short answer is: not in production yet, but start preparing now. Laravel 13.44 (25 November) added PHP 8.6 support to the framework (Laravel News), but the official support table still lists PHP 8.5 as the newest version, and many packages haven't caught up. The safe order is to patch your current PHP version, move to PHP 8.4 or 8.5 if you are behind, update to Laravel 13.44 or newer, and test PHP 8.6 in CI until your packages support it too.
This guide explains what PHP 8.6 brings, what it changes or deprecates, how long each PHP version is supported, and how to plan the upgrade without surprises.
When was PHP 8.6 released, and how long is it supported?
PHP 8.6.0 was released on 19 November 2026, the same day as security releases for 8.2, 8.3, 8.4 and 8.5 (we covered those in what Laravel owners must do about the critical PHP security release). According to php.net's supported versions page:
| PHP version | Active support until | Security support until |
|---|---|---|
| 8.2 | 31 Dec 2024 | 31 Dec 2026 |
| 8.3 | 31 Dec 2025 | 31 Dec 2027 |
| 8.4 | 31 Dec 2026 | 31 Dec 2028 |
| 8.5 | 31 Dec 2027 | 31 Dec 2029 |
| 8.6 | 31 Dec 2028 | 31 Dec 2030 |
PHP 8.6 gives you the longest runway: security fixes until the end of 2030. But a long runway doesn't help if your framework and packages aren't ready.
Does Laravel support PHP 8.6 yet?
Not officially, at the time of writing. The Laravel 13 release notes list the supported PHP versions per release:
| Laravel | Supported PHP | Security fixes until |
|---|---|---|
| 11 | 8.2 – 8.4 | 12 Mar 2026 (ended) |
| 12 | 8.2 – 8.5 | 24 Feb 2027 |
| 13 | 8.3 – 8.5 | 17 Mar 2028 |
Laravel usually adds support for a new PHP version in point releases after it ships, so this will likely change. Until the table lists 8.6, treat it as a test target, not a production target. Even after Laravel supports it, every package in your composer.json needs a release that works on 8.6, and that usually takes longer.
What's new in PHP 8.6?
The PHP 8.6 release page highlights six features:
- Partial function application: "Allows some of a function's arguments to be provided in advance, returning a Closure that accepts the rest."
clamp(): "Ensures that a given value (numeric or otherwise) falls within a specified range."- Readonly property defaults: readonly properties can declare default values, so fixed values no longer have to be assigned in the constructor.
\Time\Duration: a class that "represents elapsed time as measured by a stopwatch."- A polling API: scalable I/O multiplexing (epoll, kqueue and others) for event loop libraries like ReactPHP and AMPHP.
SortDirectionenum: a standard way to express sort order that libraries can share.
Smaller improvements include JSON error messages that show where in the input the error is, new stream error handling and URI builders.
A quick look at what this means in everyday code:
// Readonly property with a default value (no constructor assignment needed)
final class InvoiceSettings
{
public readonly string $currency = 'USD';
}
// Keep a value inside a range
$discount = clamp($requestedDiscount, 0, 30);
For a business, none of these is a reason to upgrade on its own. The reason to plan for PHP 8.6 is the support window, plus the performance and security work each release brings. The features are a bonus for your developers.
What could break when you move to PHP 8.6?
The backward incompatible changes and deprecations are the part to plan for. The ones most likely to touch a Laravel app or its packages:
Changed behaviour
- String trimming:
trim(),ltrim()andrtrim()now also strip the form feed character (\f) by default. That's rarely a problem, but it can matter in importers and text parsers. - Stricter arguments: many functions now throw
ValueErrorfor NUL bytes or out-of-range values, includingsleep(),usleep(),number_format(),getenv()andputenv(). Code that used to pass bad input silently will now fail loudly. preg_grep()returnsfalseinstead of a partial array when a regular expression fails.- Native session defaults are stricter (
session.use_strict_mode,session.cookie_httponlyandsession.cookie_samesite=Laxare now on by default). Laravel's own sessions don't use PHP's native session handler, but legacy code on the same server that callssession_start()will notice. - Serializing
ZipArchivenow throws an exception.
Deprecations (warnings now, errors later)
returninside afinallyblock.- Returning a value from
__construct()or__destruct(). is_double(),is_long(),is_integer()anddoubleval(), which have long had standard equivalents.spl_object_hash(), a function some older packages still use.- The mbregex functions (
mb_ereg(),mb_split()and others), which php.net says "will be removed in PHP 9.0." strcoll()andSORT_LOCALE_STRING,metaphone(), the third argument ofdefine(), and passing objects toarray_walk()andhttp_build_query().
Deprecations don't break your app today, but they fill your logs and tell you what will break in PHP 9. Fixing them during the 8.6 upgrade is cheaper than later.
What upgrade order do we recommend?
It depends on where you are today:
| You are on | Do this now | Then |
|---|---|---|
| PHP 8.2 or older | Apply the November security patch, then move to PHP 8.4 before 31 December (8.2 end of life) | Laravel 13, then 8.6 when supported |
| PHP 8.3 or 8.4 on Laravel 12 or 13 | Apply the November security patch | Add PHP 8.6 to CI; move when Laravel and packages support it |
| PHP 8.5 on Laravel 12 or 13 | Apply the November security patch | Same: test 8.6 in CI, then move |
| Laravel 11 or older | Upgrade Laravel first (11 is out of security support) | Then PHP |
Our PHP 8.2 end of life guide has the step-by-step path for each Laravel version.
How do you prepare a Laravel app for PHP 8.6 without risk?
You can do most of the work before switching production:
- Add PHP 8.6 to your CI. Run your test suite on both your current PHP and 8.6. Failures show exactly what needs fixing, with no risk to users.
- Turn on deprecation logging on staging. Laravel can send deprecation warnings to their own log channel (
LOG_DEPRECATIONS_CHANNEL), which makes them easy to review. - Check your packages. Run
composer outdated --directand look at each important package's PHP requirement. Abandoned packages need a replacement plan. - Fix the warnings in your own code first: they're the cheapest to fix.
- Update
composer.json. Thephpconstraint andconfig.platform.phpdecide which package versions Composer installs. Change them when you move, not before. - Switch every server together: web servers, queue workers, scheduler and CI, so they all run the same PHP.
- Deploy at a quiet time with a rollback plan, and watch errors and failed jobs afterwards.
# On staging with PHP 8.6 installed
composer install
php artisan test
composer audit
The biggest risk in PHP upgrades is the same one we see in every Laravel maintenance plan: code without tests, deployed all at once. Tests around the flows that earn money (sign-up, checkout, invoicing, integrations) make each step safer.
When should a business actually move to PHP 8.6?
When three things are true:
- You're on Laravel 13.44 or newer (the first release with PHP 8.6 support), or Laravel lists PHP 8.6 in its support table for your version.
- Every package your app depends on has a release that supports it.
- Your test suite passes on 8.6 and staging has run on it without new errors.
Until then, staying on a supported, patched PHP 8.4 or 8.5 is not falling behind: both get security fixes until 2028 and 2029.
Plan your PHP and Laravel upgrade with CodeBrisk
CodeBrisk is a Laravel web and mobile app development company, founded in 2014, with Laravel experience since 2015 and a 100% Job Success score as a Top Rated agency on Upwork. Our Laravel upgrade and migration service moves your PHP, Laravel and packages to supported versions one step at a time, starting with tests around your critical features.
Tell us your current PHP and Laravel versions through Launch your project, and we'll suggest the safest path to PHP 8.6.