3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); for ($i = 1; $i <= 9999999; $i++) { $a['key-' . $i] = $i; }
Output for 5.4.0 - 5.4.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/jOMBv on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 82 bytes) in /in/jOMBv on line 6
Process exited with code 255.