3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(ini_get("pcre.backtrack_limit")); ini_set("pcre.backtrack_limit", 100 * 1000); var_dump(preg_match('/TEST/', "aa" . str_repeat("a", 100 * 100000) . "TEST"));
Output for 5.4.38 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(7) "1000000" int(1)
Output for 5.3.7 - 5.4.37
string(7) "1000000" Warning: ini_set() has been disabled for security reasons in /in/6lCL1 on line 3 int(1)
Output for 5.2.0 - 5.3.6
string(6) "100000" Warning: ini_set() has been disabled for security reasons in /in/6lCL1 on line 3 int(1)
Output for 4.3.5 - 5.1.6
string(0) "" Warning: ini_set() has been disabled for security reasons in /in/6lCL1 on line 3 int(1)
Output for 4.3.1 - 4.3.4
string(0) "" Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/6lCL1 on line 3 int(1)
Output for 4.3.0
string(0) "" int(1)