3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); var_dump(ini_get('pcre.backtrack_limit'),ini_get('pcre.pcre.recursion_limit'), strlen($b));
Output for 5.3.7 - 7.1.0
string(7) "1000000" bool(false) int(100024)
Output for 5.3.0 - 5.3.6
string(6) "100000" bool(false) int(0)
Output for 5.2.0 - 5.2.17
string(6) "100000" string(0) "" int(0)
Output for 4.3.0 - 5.1.6
string(0) "" string(0) "" int(100024)