3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(); for ($i = 0; $i < 1000000; $i++) { $test[$i] = $i.' Eintrag'; } var_dump($test);
based on N7X7t
Output for 7.0.0 - 7.1.7
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554440 bytes) in /in/YoGXO on line 5
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/YoGXO on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/YoGXO on line 5
Process exited with code 255.