"Php 8.4: What's New And Changed - Latest Features And Updates"
Published on July 20, 2024 by Dinesh Uprety
New Features in PHP 8.4
- Sodium: AEGIS-128L and AEGIS256 support
- New
array_find,array_find_key,array_any,and array_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 and Removed Features and Functionality in PHP 8.4 are mention in PHP.Watch
Senior Software Engineer • Writer @ Laranepal • PHP, Laravel, Livewire, TailwindCSS & VueJS • CEO @ Laranepal & Founder @ laracodesnap
Filed in: