3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); foreach (range(1, 1000000) as $i) { $a []= new StdClass; }

Abusive script

This script was stopped while abusing our resources

Output for 5.3.0 - 5.4.27
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/gYbNe on line 4
Process exited with code 255.