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 * 1000000) . "TEST"));
Output for 7.0.0 - 7.1.0
string(7) "1000000" Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000032 bytes) in /in/30u2h on line 5
Process exited with code 255.
Output for hhvm-3.12.0
string(7) "1000000" mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/30u2h on line 5
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.7 - 5.6.28
string(7) "1000000" Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/30u2h on line 5
Process exited with code 255.
Output for 5.2.1 - 5.3.6
string(6) "100000" Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/30u2h on line 5
Process exited with code 255.
Output for 5.2.0
string(6) "100000" int(1)
Output for 4.3.0 - 5.1.6
string(0) "" int(1)