3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array_fill(0, 10000000000000, null); print_r($a);
Output for 7.0.6 - 7.1.0
Warning: array_fill(): Too many elements in /in/iiom8 on line 3
Output for 7.0.0 - 7.0.5
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 68719476744 bytes) in /in/iiom8 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17179869184 bytes) in /in/iiom8 on line 3
Process exited with code 255.
Output for 5.2.1 - 5.2.17
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /in/iiom8 on line 3
Process exited with code 255.
Output for 4.3.0 - 5.2.0

Process exited with code 137.