3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(ini_get("pcre.backtrack_limit")); $a = "aa" . str_repeat("a", 2000000) . "TESTqqTEST"; echo strlen($a); var_dump(preg_match('/TEST.*TEST/sim', $a));
Output for 5.3.7 - 7.1.0
string(7) "1000000" 2000012int(1)
Output for 5.2.0 - 5.3.6
string(6) "100000" 2000012int(1)
Output for 4.3.0 - 5.1.6
string(0) "" 2000012int(1)