We’re happy to announce that we’re preparing support for the upcoming PHP 8.6 release.
What does it mean for your sites in practice, and why should you care about this version?
Faster response and lower server load
Every PHP generation brings better optimizations, and 8.6 is no exception.
- Faster lightweight tasks: The developers have worked on the JIT compiler and sped up common operations (such as working with arrays).
- A new asynchronous interface (
Io\Poll): It sounds like magic from a dark corner of systems programming, but in practice it helps the server handle demanding requests and hundreds of visitors at once with much lower CPU usage. - The result? Faster page loads and a shorter server response time (TTFB).
Security built in by default
PHP 8.6 brings stricter default rules for handling sessions and cookies (session.cookie_samesite set to Lax, HttpOnly by default). Your WordPress admin and user logins are better protected against common web attacks, without you having to configure anything by hand.
Cleaner code for developers
If you write your own plugins or themes, PHP 8.6 will save you a lot of typing:
- The
clamp()function for easily keeping numeric values within a min/max range. - Partial Function Application for a more elegant way to shorten function calls.
Time\Durationfor highly precise work with time intervals.- Default values for
readonlyproperties right in the definition.
How to get it on WPCloud.cz
As always: don’t rush to deploy it on a live site. Wait until the authors of your plugins and themes confirm full compatibility.
In our WPCloud.cz app, you’ll be able to turn on PHP 8.6 with literally one click. We recommend creating a staging copy of your site first, testing the new version there, and only then rolling it out to production.
