Every November the PHP project ships a new version, and every November a lot of us nod, bookmark the release notes and go back to client work. This year it’s worth a closer look. PHP 8.6 was released on 19 November 2026, and at the same time the clock is running out on PHP 8.2, which stops getting security fixes on 31 December 2026. If you build or look after websites in South Africa, especially WordPress or WooCommerce sites on shared hosting, there’s a good chance some of your clients are still on 8.2 or older.
Here’s a practical rundown of what’s new in PHP 8.6, what might break, what WordPress says about compatibility, and a simple plan to get your sites onto a supported version before the holidays swallow everyone’s attention.
What’s new in PHP 8.6
The official PHP 8.6 release page lists six headline features. Some are everyday conveniences, others are aimed squarely at framework and library authors.
Partial function application
This is the big one. You can now call a function with some of its arguments filled in and use ? (or ...) as a placeholder for the rest. Instead of running the function, PHP hands you back a closure that waits for the missing arguments. It’s a tidy way to build small reusable helpers without writing a full anonymous function every time.
$dashify = str_replace(' ', '-', ?);
echo $dashify('Web Design Mzansi'); // Web-Design-Mzansi
clamp()
A small function that many of us have written by hand a hundred times: clamp() keeps a value inside a range. If the value is below the minimum you get the minimum, above the maximum you get the maximum. Think discount percentages, pagination limits or quantity fields on a product page.
$qty = clamp((int) $_POST['qty'], 1, 20);
The rest of the headline list
- \Time\Duration: a new class for measuring elapsed time with nanosecond precision, independent of time zones. Handy for timing jobs, retries and back-off logic.
- Io\Poll: a scalable polling API that sits on top of epoll, kqueue, event ports or WSAPoll. Most of us won’t touch it directly, but event-loop libraries such as ReactPHP and AMPHP will.
- SortDirection enum: a shared, type-safe way to say “ascending” or “descending”.
- Readonly property defaults: readonly properties can now declare a default value, which makes value objects and config classes cleaner.
Smaller additions include doc comments on parameters (readable through Reflection), new isReadable() and isWritable() checks on properties, exceptions for stream errors and better locations in JSON error messages. None of these will change your week, but together they make PHP feel a little more modern again.
What could break: deprecations and changed defaults
New features are fun, but the section that matters for client sites is the list of deprecations and behaviour changes. Deprecations don’t break anything yet, they just fill your logs with warnings, but they tell you what will break in a future major version. A few worth knowing about:
- Session cookie defaults have changed.
session.use_strict_modeandsession.cookie_httponlyare now enabled, andsession.cookie_samesitedefaults to Lax. That’s good for security, but test anything that reads the session cookie in JavaScript, accepts session IDs from outside, or relies on cross-site POST requests (some older payment return flows do). - Old aliases are deprecated:
is_double(),is_long(),is_integer()anddoubleval(). Older themes and plugins love these. - Returning a value from a constructor or destructor and using
returninside afinallyblock are now deprecated. - mbstring regex functions such as
mb_ereg()andmb_split()are deprecated. - Quiet behaviour changes:
trim()and friends now also strip form feed characters, andfclose(),file_put_contents()andcopy()can now return false when a flush or close fails. More functions throw aValueErrorfor out-of-range values.
The full list lives in the PHP 8.6 migration guide in the manual. If you maintain custom plugins or a Laravel app, run your test suite and a static analysis pass before you flip the switch in production.
The deadline that matters more: PHP 8.2 ends on 31 December
Honestly, for most South African agencies and freelancers, PHP 8.6 itself isn’t the urgent part. The urgent part is the supported versions table:
- PHP 8.2: security fixes end 31 December 2026.
- PHP 8.3: security fixes until 31 December 2027.
- PHP 8.4: active support until 31 December 2026, security fixes until 31 December 2028.
- PHP 8.5: active support until 31 December 2027, security fixes until 31 December 2029.
- PHP 8.6: active support until 31 December 2028, security fixes until 31 December 2030.
PHP 8.1 and older already get nothing. And this isn’t theoretical. On 19 November the PHP team pushed security releases for every supported branch (8.2.36, 8.3.37, 8.4.28 and 8.5.13), with the highest severity rated critical, as announced in the php.net news archive. From January, a site on PHP 8.2 won’t get fixes like those any more.
If you look after sites that collect names, phone numbers or order details, which is almost every site with a contact form or a checkout, running an unsupported PHP version is a hard thing to defend. POPIA expects responsible parties to take reasonable steps to keep personal information secure, and “the server was on software that stopped getting security patches” isn’t a great story to tell a client or the Information Regulator.
Where WordPress and WooCommerce stand
Good news for the WordPress crowd. In the November 2026 PHP and WordPress chat on Make WordPress Core, contributors described core as being in good shape for PHP 8.6. Two issues came up during testing: image flipping with GD (now handled with a dedicated function in core) and a TrueType font file type issue that was fixed upstream in a PHP release candidate. Confidence is high that the upcoming WordPress 7.2 will be compatible, and a PHP 8.6 developer note is being drafted.
The catch, as always, is plugins and themes. The same chat flagged plugin ecosystem compatibility as the big unknown. Core being ready doesn’t mean that page builder add-on from 2021 is.
For context, WordPress retired its “beta support” label for PHP versions earlier this year. According to the spring 2026 PHP support clarification, WordPress 6.9 and 7.0 fully support PHP 8.5, the minimum recommended version is PHP 8.3, and WordPress 7.0 still runs on PHP 7.4 at minimum. In practice that means PHP 8.3 or 8.4 is the sensible target for most client WordPress sites right now, with 8.5 a good option where your plugin stack has been tested.
A practical upgrade plan for South African sites
Most local hosts let you change the PHP version per site from cPanel, DirectAdmin or their own dashboard. That’s the easy part. Here’s how to do it without a panicked call from a client on Christmas Eve:
- Audit first. Make a quick spreadsheet of every site you manage, its PHP version, CMS version and hosting provider. WordPress shows the PHP version under Tools, Site Health, Info.
- Prioritise anything on 8.2 or older, starting with e-commerce stores and sites that collect personal information.
- Pick a realistic target. For WordPress and WooCommerce, aim for 8.3 or 8.4 now. Keep 8.6 for new custom projects, staging tests and your own tooling until plugin authors catch up.
- Test on staging. Clone the site, switch PHP, then click through the checkout, contact forms, logins and any payment gateway return pages. Turn on debug logging and watch for deprecation notices.
- Update plugins and themes before switching PHP, not after. Replace anything abandoned.
- Schedule the switch for a quiet time and have a backup ready. Many hosts let you flip back to the previous version instantly if something goes wrong.
- Talk to your host. If your provider doesn’t offer PHP 8.3 or newer yet, that’s a sign it’s time to ask hard questions, or move.
There’s also a business angle here. A PHP upgrade is exactly the kind of work clients don’t know they need until something breaks. A short, plain-language email (“your site’s server software stops getting security updates on 31 December, here’s what we recommend and what it costs”) is good service, and for many freelancers it’s billable work in a quiet season. If you have maintenance retainers, this is what they’re for.
Should you start using the new features?
For code you control end to end, such as a Laravel app, an internal tool or a custom API on a server you manage, there’s no reason not to start experimenting with PHP 8.6 in development now. Partial function application and clamp() will tidy up plenty of everyday code, and readonly defaults are a quiet win for anyone who likes value objects.
For code that ships to other people’s servers, like a WordPress plugin or theme, hold off on the new syntax. Your users’ hosts will take months, sometimes years, to get to 8.6, and new syntax means a fatal error on older versions. Do make sure your code runs cleanly on 8.6 though, without deprecation warnings, so you’re ready when they get there.
Over to you
PHP 8.6 is a solid release with some genuinely useful additions, but the real job for December is making sure none of your sites are left on PHP 8.2 or older when the year ends. Audit, test on staging, update, switch, and tell your clients what you did.
Have you tried PHP 8.6 yet, or hit any snags moving client sites off 8.2? Come and share what you’ve found in our PHP Developers group, or browse all WDSA groups for WordPress, Laravel and WooCommerce chat. Not a member yet? Join the Web Design Community of South Africa, it’s free.




