3v4l.org

run code in 200+ 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 - 7.1.7
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 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