PHP 8.5: What's New and Changed
New Features in PHP 8.5
- Pipe operator (
|>) - Filter: Support to throw exceptions on validation failures
- New
max_memory_limitINI directive to set a ceilingmemory_limit - Curl: New
curl_multi_get_handlesfunction - Intl: New
IntlListFormatterclass - CLI:
php --ini=diffto output non-default INI directives - New
array_firstandarray_lastfunctions - New
locale_is_right_to_leftfunction andLocale::isRightToLeftmethod - Stack trace support for PHP Fatal errors
- New
get_exception_handlerandget_error_handlerfunctions - New
PHP_BUILD_PROVIDERconstant - New
PHP_BUILD_DATEconstant
Deprecations in PHP 8.5
- Non-canonical scalar type casts
(boolean|double|integer|binary)deprecated mysqli_executealias function deprecated in favor ofmysqli_stmt_executecurl_closeandcurl_share_closefunctions deprecated because they are no-op in PHP >= 8.0xml_parser_freefunction deprecated as it is no-op in PHP >= 8.0socket_set_timeoutfunction deprecated in favor ofstream_set_timeout- Emitting output from custom output buffer handlers is deprecated
- All
MHASH_*constants deprecated