3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { $${"var$i"} = rand(); var_dump($var1); }
based on P7ljX
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: var0 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var1 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var2 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var3 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var4 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var5 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var6 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var7 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var8 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var9 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: var0 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var1 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var2 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var3 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var4 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var5 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var6 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var7 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL NULL NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: var0 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var1 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var2 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var3 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var4 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var5 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var6 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var7 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var8 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL Notice: Undefined variable: var9 in /in/3cJQ7 on line 4 Notice: Undefined variable: var1 in /in/3cJQ7 on line 6 NULL