3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?for($n=1e6;$n--;)$a=array($a);
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/RE02U on line 1 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /in/RE02U on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.9, 5.5.0 - 5.6.28
Notice: Undefined variable: a in /in/RE02U on line 1 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /in/RE02U on line 1
Process exited with code 255.
Output for 5.4.10 - 5.4.45
Notice: Undefined variable: a in /in/RE02U on line 1 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/RE02U on line 1
Process exited with code 255.
Output for 4.3.0 - 5.3.29
<?for($n=1e6;$n--;)$a=array($a);