PHP 8.4: What's New and Changed
New Features in PHP 8.4
- Sodium:
AEGIS-128LandAEGIS256support - New
array_find,array_find_key,array_any, andarray_allfunctions - New
grapheme_str_splitfunction - Date: New
DateTime(Immutable)::get/setMicrosecondmethods - New
mb_ucfirstandmb_lcfirstfunctions - New
http_(get|clear)_last_response_headersfunctions - Curl:
curl_version()feature_listsupport - PCRE2 Upgrade and Regular Expression Changes
- New
request_parse_bodyfunction - phpinfo: Show PHP Integer Size information
- New rounding modes in
round()function - Date: New
DateTime(Immutable)::createFromTimestampmethods - Mbstring: New
mb_trim,mb_ltrim, andmb_rtrimfunctions
Syntax/Functionality Changes in PHP 8.4
- OpenSSL: Minimum required OpenSSL version increased to 1.1.1
- Curl: Minimum required libcurl version increased to 7.61.0
round()- Invalid rounding modes throw\ValueErrorexceptions- Opcache: INI changes on how JIT is enabled
PHP_ZTSandPHP_DEBUGconstant value type changed frominttobool- Password Hashing: Default Bcrypt cost changed from
10to12
Deprecations in PHP 8.4
- Implicitly nullable parameter declarations deprecated
- Calling
session_set_save_handler()with more than 2 arguments deprecated - Curl:
CURLOPT_BINARYTRANSFERdeprecated