3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new stdclass; for($i = 0; $i < 100000; $i++) { $x = new stdclass; $x->o = $o; $o = $x; } echo "end";

Abusive script

This script was stopped while abusing our resources

Output for 5.0.0 - 5.6.30, 7.0.0 - 7.1.7
end
Process exited with code 139.
Output for hhvm-3.10.1 - 3.12.14, hhvm-3.15.4 - 3.17.3

Process exited with code 137.
Output for hhvm-3.13.2
Fatal error: Unable to allocate 2097152 bytes of memory
Process exited with code 255.
Output for 4.3.0 - 4.4.9
end