3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var5 = str_repeat("A",60000000); $x = array($var5); function crash_me(&$x) { die('failed :-('); } crash_me($var5);
Output for 4.3.0 - 5.2.0, 7.0.0 - 7.1.0
failed :-(
Output for 5.2.1 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 60000001 bytes) in /in/c82Mv on line 10
Process exited with code 139.