PHP 8.5 Hosting Available Now!

  • Monday, 16th March, 2026
  • 12:38pm

New Features in PHP 8.5

  • Pipe operator (|>)
  • Filter: Support to throw exceptions on validation failures
  • New max_memory_limit INI directive to set a ceiling memory_limit
  • Curl: New curl_multi_get_handles function
  • Intl: New IntlListFormatter class
  • CLI: php --ini=diff to output non-default INI directives
  • New array_first and array_last functions
  • New locale_is_right_to_left function and Locale::isRightToLeft method
  • Stack trace support for PHP Fatal errors
  • New get_exception_handler and get_error_handler functions
  • New PHP_BUILD_PROVIDER constant
  • New PHP_BUILD_DATE constant

Deprecations in PHP 8.5

  • Non-canonical scalar type casts (boolean|double|integer|binary) deprecated
  • mysqli_execute alias function deprecated in favor of mysqli_stmt_execute
  • curl_close and curl_share_close functions deprecated because they are no-op in PHP >= 8.0
  • xml_parser_free function deprecated as it is no-op in PHP >= 8.0
  • socket_set_timeout function deprecated in favor of stream_set_timeout
  • Emitting output from custom output buffer handlers is deprecated
  • All MHASH_* constants deprecated

Removed Features and Functionality in PHP 8.5

  • CLI/CGI: -z / --zend-extension option removed
« Back