3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $y = array(); for ($i=0; $i<100000; $i++) { $x = new stdClass(); $x->fish = 'fish'; $x->pie = $x->fish . 'pie'; $y[] = $x; }
Output for 4.3.0 - 5.2.0, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.4.25 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/IBfJm on line 7
Process exited with code 255.
Output for 5.4.10 - 5.4.24
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /in/IBfJm on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.9
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /in/IBfJm on line 6
Process exited with code 255.
Output for 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/IBfJm on line 4
Process exited with code 255.
Output for 5.2.1, 5.3.11 - 5.3.28
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /in/IBfJm on line 4
Process exited with code 255.
Output for 5.2.10 - 5.3.10
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 75 bytes) in /in/IBfJm on line 6
Process exited with code 255.
Output for 5.2.2, 5.2.7 - 5.2.9
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8 bytes) in /in/IBfJm on line 6
Process exited with code 255.
Output for 5.2.6
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /in/IBfJm on line 4
Process exited with code 139.
Output for 5.2.3 - 5.2.5
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 76 bytes) in /in/IBfJm on line 5
Process exited with code 255.