PHP.Watch: PHP Version Changeshttps://php.watch/versions2026-04-14T10:44:00+00:00Ayesh KarunaratneRecent changes in PHP language.New `grapheme_strrev` functionhttps://php.watch/versions/8.6/grapheme_strrev2026-04-14T10:44:00+00:00Change type: New Feature
Target version: 8.6
New `SortDirection` Enumhttps://php.watch/versions/8.6/SortDirection2026-04-12T10:44:00+00:00Change type: New Feature
Target version: 8.6
`trim`, `ltrim`, `rtrim`, `chop` functions now trim Form-Feed (`\f`) by defaulthttps://php.watch/versions/8.6/trim-form-feed2026-04-11T10:44:00+00:00Change type: Change
Target version: 8.6
`array_filter` function's `$mode` throws `ValueError` on invalid valueshttps://php.watch/versions/8.6/array_filter_mode-param-ValueError2026-04-11T10:44:00+00:00Change type: Change
Target version: 8.6
New `clamp` functionhttps://php.watch/versions/8.6/clamp2026-01-08T10:44:00+00:00Change type: New Feature
Target version: 8.6
JSON: `json_decode` error/exception message now indicates the location of the errorhttps://php.watch/versions/8.6/json_decode-error-position2026-01-05T10:44:00+00:00Change type: New Feature
Target version: 8.6
`mysqli_execute` alias function deprecated in favor of `mysqli_stmt_execute`https://php.watch/versions/8.5/mysqli_execute-deprecated2025-11-20T10:44:00+00:00Change type: Deprecation
Target version: 8.5
`curl_close` and `curl_share_close` functions deprecated because they are no-op in PHP >= 8.0https://php.watch/versions/8.5/curl_close-curl_share_close-deprecated2025-11-19T10:44:00+00:00Change type: Deprecation
Target version: 8.5
`xml_parser_free` function deprecated as it is no-op in PHP >= 8.0https://php.watch/versions/8.5/xml_parser_free-deprecated2025-11-19T10:44:00+00:00Change type: Deprecation
Target version: 8.5
`socket_set_timeout` function deprecated in favor of `stream_set_timeout`https://php.watch/versions/8.5/socket_set_timeout-deprecated2025-11-19T10:44:00+00:00Change type: Deprecation
Target version: 8.5
Filter: Support to throw exceptions on validation failureshttps://php.watch/versions/8.5/filter-validation-throw-exception2025-11-19T10:44:00+00:00Change type: New Feature
Target version: 8.5
New `PHP_BUILD_PROVIDER` constanthttps://php.watch/versions/8.5/PHP_BUILD_PROVIDER2025-11-19T10:44:00+00:00Change type: New Feature
Target version: 8.5
CLI/CGI: `-z` / `--zend-extension` option removedhttps://php.watch/versions/8.5/cli-cgi-z-option-removed2025-11-19T10:44:00+00:00Change type: Removal
Target version: 8.5
New `max_memory_limit` INI directive to set a ceiling `memory_limit`https://php.watch/versions/8.5/max_memory_limit2025-08-07T10:44:00+00:00Change type: New Feature
Target version: 8.5
Emitting output from custom output buffer handlers is deprecatedhttps://php.watch/versions/8.5/ob-handler-output-deprecated2025-08-06T10:44:00+00:00Change type: Deprecation
Target version: 8.5