3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constants = get_defined_constants(); $result = array_intersect_key($constants, array_flip(preg_grep('/^P(?:REG|CRE)_/', array_keys($constants)))); ksort($result); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [PCRE_JIT_SUPPORT] => 1 [PCRE_VERSION] => 10.40 2022-04-14 [PCRE_VERSION_MAJOR] => 10 [PCRE_VERSION_MINOR] => 40 [PREG_BACKTRACK_LIMIT_ERROR] => 2 [PREG_BAD_UTF8_ERROR] => 4 [PREG_BAD_UTF8_OFFSET_ERROR] => 5 [PREG_GREP_INVERT] => 1 [PREG_INTERNAL_ERROR] => 1 [PREG_JIT_STACKLIMIT_ERROR] => 6 [PREG_NO_ERROR] => 0 [PREG_OFFSET_CAPTURE] => 256 [PREG_PATTERN_ORDER] => 1 [PREG_RECURSION_LIMIT_ERROR] => 3 [PREG_SET_ORDER] => 2 [PREG_SPLIT_DELIM_CAPTURE] => 2 [PREG_SPLIT_NO_EMPTY] => 1 [PREG_SPLIT_OFFSET_CAPTURE] => 4 [PREG_UNMATCHED_AS_NULL] => 512 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.95 ms | 402 KiB | 8 Q