3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = array( array(array('test' => 11), array('test' => 12)), array(array('test' => 21), array('test' => 22)), ); foreach ($tmp as &$items) { $tmp[] = array(array('test' => 99)); } var_dump($tmp);
based on h4GQo
Output for 7.1.0 - 7.2.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 67108872 bytes) in /in/TokXr on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 8388616 bytes) in /in/TokXr on line 9
Process exited with code 255.
Output for 5.3.20 - 5.3.29, 5.5.24 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/TokXr on line 9
Process exited with code 255.
Output for 5.4.10 - 5.4.45
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/TokXr on line 9
Process exited with code 255.