3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(); for($i = 0; $i < 1000; $i++) { $array[] = $array; } $array2 =& $array; for($i = 0; $i < 1000; $i++) { $array2[] = $array; }
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 69632 bytes) in /in/tJeGq on line 12
Process exited with code 255.
Output for 4.3.0 - 5.2.0, hhvm-3.10.0 - 3.12.0
Output for 5.4.35 - 5.4.45, 5.5.19 - 5.5.37, 5.6.3 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/tJeGq on line 12
Process exited with code 255.
Output for 5.4.0 - 5.4.34, 5.5.0 - 5.5.18, 5.6.0 - 5.6.2
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/tJeGq on line 12
Process exited with code 139.
Output for 5.3.4 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/tJeGq on line 12 zend_mm_heap corrupted
Process exited with code 1.
Output for 5.2.6 - 5.3.3
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/tJeGq on line 12
Process exited with code 255.
Output for 5.2.1 - 5.2.5
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16384 bytes) in /in/tJeGq on line 12
Process exited with code 255.