3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/TEST/', "aa" . str_repeat("a", 100 * 1000000) . "TEST"));
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000032 bytes) in /in/pZgHs on line 3
Process exited with code 255.
Output for 5.2.1 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/pZgHs on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.0
int(1)