Hosting and domains

PHP 8.4 is out: what changes for a site owner and is there a rush?

PHP 8.4 was released on 21 November. The main new features in plain words, and when it makes sense to move your site to this version.

PHP 8.4 is out: what changes for a site owner and is there a rush?

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:

  1. Wait for CMS and plugin compatibility with 8.4 (usually takes a few months).
  2. Check first on a staging copy and look at the error log.
  3. Take a backup, switch and watch for a few days.
  4. Do stay on a supported version: 8.0 and older no longer get security updates.

Hosting with modern PHP: hosting plans.

Found it useful? Share it:

Get new articles by email

One or two emails a month: practical tips on websites, hosting and security. Unsubscribe any time with one click.