PHP.Watch: PHP Version Changes https://php.watch/versions 2026-04-14T10:44:00+00:00 Ayesh Karunaratne Recent changes in PHP language. New `grapheme_strrev` function https://php.watch/versions/8.6/grapheme_strrev 2026-04-14T10:44:00+00:00 Change type: New Feature Target version: 8.6 New `SortDirection` Enum https://php.watch/versions/8.6/SortDirection 2026-04-12T10:44:00+00:00 Change type: New Feature Target version: 8.6 `trim`, `ltrim`, `rtrim`, `chop` functions now trim Form-Feed (`\f`) by default https://php.watch/versions/8.6/trim-form-feed 2026-04-11T10:44:00+00:00 Change type: Change Target version: 8.6 `array_filter` function's `$mode` throws `ValueError` on invalid values https://php.watch/versions/8.6/array_filter_mode-param-ValueError 2026-04-11T10:44:00+00:00 Change type: Change Target version: 8.6 New `clamp` function https://php.watch/versions/8.6/clamp 2026-01-08T10:44:00+00:00 Change type: New Feature Target version: 8.6 JSON: `json_decode` error/exception message now indicates the location of the error https://php.watch/versions/8.6/json_decode-error-position 2026-01-05T10:44:00+00:00 Change 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-deprecated 2025-11-20T10:44:00+00:00 Change type: Deprecation Target version: 8.5 `curl_close` and `curl_share_close` functions deprecated because they are no-op in PHP >= 8.0 https://php.watch/versions/8.5/curl_close-curl_share_close-deprecated 2025-11-19T10:44:00+00:00 Change type: Deprecation Target version: 8.5 `xml_parser_free` function deprecated as it is no-op in PHP >= 8.0 https://php.watch/versions/8.5/xml_parser_free-deprecated 2025-11-19T10:44:00+00:00 Change 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-deprecated 2025-11-19T10:44:00+00:00 Change type: Deprecation Target version: 8.5 Filter: Support to throw exceptions on validation failures https://php.watch/versions/8.5/filter-validation-throw-exception 2025-11-19T10:44:00+00:00 Change type: New Feature Target version: 8.5 New `PHP_BUILD_PROVIDER` constant https://php.watch/versions/8.5/PHP_BUILD_PROVIDER 2025-11-19T10:44:00+00:00 Change type: New Feature Target version: 8.5 CLI/CGI: `-z` / `--zend-extension` option removed https://php.watch/versions/8.5/cli-cgi-z-option-removed 2025-11-19T10:44:00+00:00 Change 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_limit 2025-08-07T10:44:00+00:00 Change type: New Feature Target version: 8.5 Emitting output from custom output buffer handlers is deprecated https://php.watch/versions/8.5/ob-handler-output-deprecated 2025-08-06T10:44:00+00:00 Change type: Deprecation Target version: 8.5