---
title: "Information About PHP 8.4 Update"
url: https://daily.dev/posts/information-about-php-8-4-update-ou00rvlb7
source_url: https://daily.dev/posts/information-about-php-8-4-update-ou00rvlb7
type: freeform
source: "PHP Dev"
author: "Erhan ÜRGÜN"
published: 2024-05-19T07:42:51.942Z
updated: 2024-05-19T07:43:00.609Z
tags: ["php"]
reading_time: 2
upvotes: 57
comments: 5
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Information About PHP 8.4 Update

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@erhanurgun](https://daily.dev/erhanurgun) · 2 min read · 57 upvotes · 5 comments

## Summary

PHP 8.4 brings notable features and improvements, including DOM HTML5 parsing, increased bcrypt cost for enhanced security, improvements in parsing large XML documents, multibyte trimming functions, property hooks, and an updated release cycle.

## Content

PHP 8.4 is shaping up to be an exciting update with several notable features and improvements. Here are some of the key changes expected:

1. **DOM HTML5 Parsing and Serialization**: PHP 8.4 introduces a new DOM extension that enables HTML5 parsing and serialization, making it easier to handle HTML documents programmatically. This allows for creating and manipulating HTML documents directly from strings or files using a more modern and robust parser.

2. **Increased Bcrypt Cost**: The default cost for bcrypt password hashing has been increased to 12, enhancing security by making it more resistant to brute-force attacks. This change will slightly increase the time required to hash passwords, providing better protection against modern computing power.

3. **Large XML Document Parsing**: Improvements in the ext/xml extension address issues with parsing large XML documents. A new parser option has been added to handle these documents more effectively, preventing errors that previously required complex workarounds.

4. **Multibyte Trimming Functions**: PHP 8.4 includes new multibyte-safe string trimming functions: `mb_trim()`, `mb_ltrim()`, and `mb_rtrim()`. These functions make it easier to trim whitespace and other characters from multibyte strings, enhancing support for internationalization.

5. **Property Hooks**: A significant addition is the introduction of property hooks, allowing developers to define custom logic for getting and setting class properties. This feature provides greater control over property access and can help enforce validation and other rules at the property level.

6. **Updated Release Cycle**: PHP 8.4 is expected to follow the updated release cycle, which includes more structured and predictable updates, helping developers plan their upgrades and maintenance more effectively.

These features highlight PHP's continuous evolution, focusing on security, performance, and developer experience. For more detailed information and ongoing updates, you can follow the PHP RFCs and development discussions on the official PHP website and relevant developer forums.

For more:
1) https://benjamincrozat.com/php-84
2) https://laravel-news.com/php-property-hooks
3) https://thephp.foundation/blog/2023/11/23/php-83/#php-8.4-outlook

## Community discussion

Top comments from developers on daily.dev.

**@kibongo** · 2 upvotes

> This looks promising.
> PHP forever 💪

**@ahmadmuzayyin** · 1 upvotes

> Seriously, PHP 8.4 has been released?

**@catlinks** · 1 upvotes

> hum, is that already obtainable ??

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/information-about-php-8-4-update-ou00rvlb7)
