3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; while(1) { ++$i; $varname='obj_' . $i; $$varname = new DateTime(); } ?>
Output for 7.0.0 - 7.1.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9437184 bytes) in /in/ZOTf0 on line 1
Process exited with code 255.
Output for hhvm-3.12.0
mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/ZOTf0 on line 1
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: request has exceeded memory limit in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 5.3.3 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16777216 bytes) in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 5.2.11 - 5.3.2
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 5.2.0 - 5.2.10

Process exited with code 139.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/ZOTf0 on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/ZOTf0 on line 1