# "PHP 8.4: What's New and Changed - Latest Features and Updates"

By Dinesh Uprety
Published: 2024-07-20
Updated: 2024-07-20
Canonical: https://laranepal.com/blog/php-84-whats-new-and-changed-latest-features-and-updates

## New Features in PHP 8.4
* [Sodium: AEGIS-128L and AEGIS256 support](https://php.watch/versions/8.4/sodium-aegis-encryption-support)
* [New `array_find`, `array_find_key`, `array_any`, `and array_all` functions`](https://php.watch/versions/8.4/array_find-array_find_key-array_any-array_all)
* [New `grapheme_str_split` function](https://php.watch/versions/8.4/grapheme_str_split)
* [Date:` New DateTime(Immutable)::get/setMicrosecond` methods](https://php.watch/versions/8.4/date-datetime-get-setMicrosecond)
* [New `mb_ucfirst` and `mb_lcfirst` functions](https://php.watch/versions/8.4/mb_ucfirst-mb_ucfirst)
* [New `http_(get|clear)_last_response_headers` functions](https://php.watch/versions/8.4/http_get-clear_last_response_headers)
* [Curl: `curl_version()` `feature_list` support](https://php.watch/versions/8.4/curl_version-feature_list)
* [PCRE2 Upgrade and Regular Expression Changes](https://php.watch/versions/8.4/pcre2-regexp-syntax-changes)
* [New `request_parse_body` function](https://php.watch/versions/8.4/request_parse_body)
* [phpinfo: Show PHP Integer Size information](https://php.watch/versions/8.4/phpinfo-int-size/)
* [New rounding modes in `round()` function](https://php.watch/versions/8.4/round-new-modes)
* [Date: New `DateTime(Immutable)::createFromTimestamp` methods](https://php.watch/versions/8.4/datetime-createFromTimestamp)
* [Mbstring: New `mb_trim`, `mb_ltrim`, and `mb_rtrim` functions](https://php.watch/versions/8.4/mb_trim-mb_ltrim-mb_rtrim)

## Syntax/Functionality Changes in PHP 8.4
* [OpenSSL: Minimum required OpenSSL version increased to 1.1.1](https://php.watch/versions/8.4/openssl-min-111)
* [Curl: Minimum required libcurl version increased to 7.61.0](https://php.watch/versions/8.4/curl-libcurl-version-bump)
* [`round()` - Invalid rounding modes throw `\ValueError` exceptions](https://php.watch/versions/8.4/round-invalid-mode-exceptions)
* [Opcache: INI changes on how JIT is enabled](https://php.watch/versions/8.4/opcache-jit-ini-default-changes)
* [`PHP_ZTS` and `PHP_DEBUG` constant value type changed from `int` to `bool`](https://php.watch/versions/8.4/PHP_ZTS-PHP_DEBUG-const-type-change)
* [Password Hashing: Default Bcrypt cost changed from `10` to `12`](https://php.watch/versions/8.4/password_hash-bcrypt-cost-increase)

> [Deprecations in PHP 8.4](https://php.watch/versions/8.4#deprecations) and [Removed Features and Functionality in PHP 8.4](https://php.watch/versions/8.4#removed-functionality) are mention in [**PHP.Watch**](https://php.watch/)
