3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PCRE_VERSION, ini_get('pcre.backtrack_limit'),ini_get('pcre.recursion_limit')); $b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); //$b = preg_match('/(.)*/', str_repeat('x', 12000)); var_dump(strlen($b), preg_last_error());

preferences:
42.4 ms | 402 KiB | 5 Q