3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar_objs = new ArrayObject(); foreach (range(0, 75) as $iter) { $ar_objs[] = new ArrayObject(range(0, 100000)); }
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4194312 bytes) in /in/WV8AC on line 6
Process exited with code 255.
Output for 5.3.29, 5.4.26 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/WV8AC on line 6
Process exited with code 255.
Output for 5.4.0 - 5.4.25
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /in/WV8AC on line 6
Process exited with code 255.
Output for 5.2.1, 5.2.6 - 5.3.28
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /in/WV8AC on line 6
Process exited with code 255.
Output for 5.2.2 - 5.2.5
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /in/WV8AC on line 6
Process exited with code 255.
Output for 5.0.3, 5.1.1 - 5.1.5, 5.2.0
Output for 5.0.0 - 5.0.2, 5.0.4 - 5.1.0, 5.1.6

Process exited with code 137.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/WV8AC on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/WV8AC on line 3