PHP 8.4: What's New and Changed
New Features in PHP 8.4
- Sodium:
AEGIS-128L
andAEGIS256
support - New
array_find
,array_find_key
,array_any
, andarray_all
functions - New
grapheme_str_split
function - New
request_parse_body
function - BCMath: New
bcdivmod
function - New
mb_ucfirst
andmb_lcfirst
functions - New
http_(get|clear)_last_response_headers
functions - Curl:
curl_version()
feature_list
support - PCRE2 Upgrade and Regular Expression Changes
- phpinfo: Show PHP Integer Size information
- Date: New
DateTime(Immutable)::get/setMicrosecond
methods - New rounding modes in
round()
function - Date: New
DateTime(Immutable)::createFromTimestamp
methods - Mbstring: New
mb_trim
,mb_ltrim
, andmb_rtrim
functions
Syntax/Functionality Changes in PHP 8.4
- MBString: Unicode Character Database updated to version 16
- 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\ValueError
exceptions- Opcache: INI changes on how JIT is enabled
PHP_ZTS
andPHP_DEBUG
constant value type changed fromint
tobool
- Password Hashing: Default Bcrypt cost changed from
10
to12
Deprecations in PHP 8.4
- Implicitly nullable parameter declarations deprecated
E_STRICT
constant deprecated- Calling
session_set_save_handler()
with more than 2 arguments deprecated - Curl:
CURLOPT_BINARYTRANSFER
deprecated