3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var5 = str_repeat("A",70000000); $x = array($var5); function crash_me(&$x) { die('failed :-('); } crash_me($var5);
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 70000032 bytes) in /in/N9NoH on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.0, hhvm-3.10.0 - 3.12.0
failed :-(
Output for 5.5.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 70000001 bytes) in /in/N9NoH on line 3
Process exited with code 255.
Output for 5.2.3 - 5.4.45
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70000001 bytes) in /in/N9NoH on line 10
Process exited with code 139.
Output for 5.2.1 - 5.2.2
<br /> <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70000001 bytes) in <b>/in/N9NoH</b> on line <b>10</b><br />
Process exited with code 139.