On 21 November 2024 the new annual PHP version, PHP 8.4, was released. PHP powers a large share of sites (WordPress, Laravel and others), so every new version concerns a site owner indirectly.
Main new features (in brief)
- Property hooks: it is simpler to add rules to class properties that run on read and write; less code is needed.
- Asymmetric visibility: anyone can read a property, but only the class itself can change it.
- New array functions (
array_find,array_any,array_all): simple searches no longer need an extra loop. - Support for the modern HTML5 DOM and a number of performance improvements.
What does it mean for a site?
If you use a ready-made CMS you will not "see" most of the new features; the benefit comes from an updated environment: better security and speed. Developers can use the new capabilities.
Is there a rush?
No. Moving to a new PHP version right after release is not required. A sensible order is:
- Wait for CMS and plugin compatibility with 8.4 (usually takes a few months).
- Check first on a staging copy and look at the error log.
- Take a backup, switch and watch for a few days.
- Do stay on a supported version: 8.0 and older no longer get security updates.
Hosting with modern PHP: hosting plans.



