3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); for ($i = 0; $i < 2000; $i++) { $data[md5(uniqid('', true))] = $data; }
Output for 7.3.0 - 7.3.12, 7.4.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81920 bytes) in /in/2Om5X on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 73728 bytes) in /in/2Om5X on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 105 bytes) in /in/2Om5X on line 4
Process exited with code 255.
Output for 5.2.1 - 5.2.17, 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 104 bytes) in /in/2Om5X on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0

preferences:
186.4 ms | 402 KiB | 223 Q