3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(); $arr2 = array(); for ($i = 0; $i < 100000000; $i++) { $arr[$i] = $i; $arr2[$i] = $i; } foreach ($arr as $k=>$v) { $arr[$k][$k] = $v; }
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554440 bytes) in /in/6FlNU on line 7
Process exited with code 255.
Output for hhvm-3.12.0
mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/6FlNU on line 6
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: request has exceeded memory limit in /in/6FlNU on line 6
Process exited with code 255.
Output for 5.3.9 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4194304 bytes) in /in/6FlNU on line 8
Process exited with code 255.