3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(&$a); function fill (&$a, $i = 3) { if (!$i--) return; foreach ($a as &$tmp) { $tmp = array($tmp ,&$a); //var_dump($a); fill($tmp); } } fill($a);
Output for 5.4.0 - 5.4.14
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/c6NjS on line 6
Process exited with code 255.
Output for 5.3.11 - 5.3.24
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/c6NjS on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.10
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/c6NjS on line 6
Process exited with code 255.