Skip to content
About Skills Projects
Back to blog

What's new in PHP 8.4

Dec 1, 2025 · 194 views
What's new in PHP 8.4

PHP 8.4 — Revolutionary Updates in Backend Development

The PHP community has presented its next major release — PHP 8.4. This version introduces a series of technical capabilities that significantly improve code readability and performance.

1. Property Hooks — Simplifying Getters and Setters

With property hooks, you can define value modification and retrieval logic directly inside the attribute, without writing boilerplate getter and setter methods:

class User {
  public string $name {
    get => strtoupper($this->name);
    set(string $v) => $this->name = trim($v);
  }
}

2. Performance and JIT Metrics

Thanks to optimizations in the JIT (Just-In-Time) compiler in PHP 8.4, backend request processing speed increased by 10% to 14%.

3. Asymmetric Visibility

Introduced the ability to set a property as public for reading, but private for modification.

You can explore the full official documentation at php.net.
194 views