3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array(); while($i < 10000000){ $test[] = $i; $i++; } echo 'end'; ?>

Abusive script

This script was stopped while abusing our resources

Output for 5.3.6 - 5.4.24
Notice: Undefined variable: i in /in/5RIU1 on line 3 Notice: Undefined variable: i in /in/5RIU1 on line 4 Notice: Undefined variable: i in /in/5RIU1 on line 5 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/5RIU1 on line 5
Process exited with code 255.