PHP 8.4 Hosting Available Now!

  • Sunday, 1st March, 2026
  • 00:00am

New Features in PHP 8.4

  • Sodium: AEGIS-128L and AEGIS256 support
  • New array_findarray_find_keyarray_any, and array_all functions
  • New grapheme_str_split function
  • BCMath: New bcdivmod function
  • Intl: New intltz_get_iana_id function and IntlTimeZone::getCanonicalID method
  • Curl: New CURL_HTTP_VERSION_3 and CURL_HTTP_VERSION_3ONLY constants for HTTP/3 support
  • #[Deprecated] attribute
  • Curl: curl_getinfo - CURLINFO_POSTTRANSFER_TIME_T support
  • Curl: New CURLOPT_PREREQFUNCTION option
  • Curl: New CURLOPT_DEBUGFUNCTION option
  • Curl: New CURLOPT_SERVER_RESPONSE_TIMEOUT option to replace CURLOPT_FTP_RESPONSE_TIMEOUT
  • Curl: New CURLOPT_TCP_KEEPCNT option
  • phpinfo: Show PHP Integer Size information
  • Mbstring: New mb_trimmb_ltrim, and mb_rtrim functions
  • Date: New DateTime(Immutable)::createFromTimestamp methods
  • New rounding modes in round() function
  • Date: New DateTime(Immutable)::get/setMicrosecond methods
  • New request_parse_body function
  • PCRE2 Upgrade and Regular Expression Changes
  • Curl: curl_version() feature_list support
  • New http_(get|clear)_last_response_headers functions
  • New mb_ucfirst and mb_lcfirst functions

Syntax/Functionality Changes in PHP 8.4

  • Curl: CURLOPT_DNS_USE_GLOBAL_CACHE no longer has any effect
  • MBString: Unicode Character Database updated to version 16
  • exit/die changed from language constructs to functions
  • round() - Invalid rounding modes throw \ValueError exceptions
  • Password Hashing: Default Bcrypt cost changed from 10 to 12
  • PHP_ZTS and PHP_DEBUG constant value type changed from int to bool
  • Opcache: INI changes on how JIT is enabled
  • OpenSSL: Minimum required OpenSSL version increased to 1.1.1
  • Curl: Minimum required libcurl version increased to 7.61.0

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
  • CSV: The $escape parameter must be provided
  • SUNFUNCS_RET_* constants deprecated
  • Curl: CURLOPT_BINARYTRANSFER deprecated

Removed Features and Functionality in PHP 8.4

  • Pspell extension moved from PHP Core to PECL
  • IMAP extension moved from PHP Core to PECL
  • OCI8 and PDO-OCI extensions from PHP Core to PECL
« Back