---
title: "PHP 8.4"
description: "PHP 8.4 is a 2024 release that introduced property hooks and asymmetric visibility. Learn its key additions, performance and why this PHP version matters."
url: "https://nodea.io/en/glossary/php-8-4"
lang: "en"
updated: "2026-07-13"
---

# PHP 8.4

> PHP 8.4 is a late-2024 release of the PHP language that introduced property hooks, asymmetric property visibility and new-object chaining syntax. It is one of the newest releases in the 8 series.

**PHP 8.4** is a release of the [PHP](https://nodea.io/en/glossary/php) language shipped in late 2024, one of the newest releases in the 8.x series. It continues the direction set by earlier versions, adding mechanisms that simplify working with objects and further refining the type system. Its flagship additions are property hooks and asymmetric property visibility.

## Why PHP 8.4 mattered

PHP 8.4 focused on the ergonomics of working with objects and greater code precision:

- **property hooks** — the ability to define read and write logic directly on a property, without writing separate getters and setters;
- **asymmetric property visibility** — setting visibility separately for reading and writing, for example public read and private write;
- **chaining on new objects without parentheses** — a more concise syntax for creating and using objects;
- **standard-library improvements** and the deprecation of further outdated constructs.

Property hooks are an especially significant change, because they cut down on boilerplate code and bring PHP closer to the convenience known from other modern programming languages.

## Practical applications

As one of the freshest releases, PHP 8.4 is a natural choice for new projects that want to benefit from the longest support window and the latest language features. Before a production deployment it is worth verifying the compatibility of the [frameworks](https://nodea.io/en/glossary/framework) and libraries in use, because the ecosystem needs time to fully adapt. Modern [hosting](https://nodea.io/en/glossary/hosting) and VPS servers let you choose the PHP version from a control panel, so you can safely test an application on 8.4 in a staging environment before switching a live site over.

### Less boilerplate code

Property hooks and asymmetric property visibility address a common problem: the large amount of routine code needed to control access to an object's fields. Instead of writing separate read and write methods for each property, a developer can define the relevant logic directly on the field. The result is shorter, more readable and more maintainable code, which teams working on elaborate data models will especially appreciate.

### Is it worth moving to PHP 8.4 right away?

The new version gives access to the latest features and the longest support window, but before a production migration it is worth checking the compatibility of the libraries and frameworks you use. It is safe to test the application on 8.4 in a staging environment before switching a live site over to it.

## Related

- [PHP](https://nodea.io/en/glossary/php)
- [PHP 8.2](https://nodea.io/en/glossary/php-8-2)
- [PHP 8.1](https://nodea.io/en/glossary/php-8-1)
- [Framework](https://nodea.io/en/glossary/framework)
- [Hosting](https://nodea.io/en/glossary/hosting)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/php-8-4.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
