3v4l.org

run code in 200+ 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.2.6
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 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.