3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php f(0, $$var); $x = 1; $y = 2; echo $x; function f($a, $b) {}
Output for 5.0.4 - 5.2.17, 5.3.3 - 7.1.0
Notice: Undefined variable: var in /in/WBj8v on line 3 Notice: Undefined variable: in /in/WBj8v on line 3 1
Output for 5.3.0 - 5.3.2
Notice: Undefined variable: var in /in/WBj8v on line 3 Notice: Undefined variable: in /in/WBj8v on line 3 2
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: var in /in/WBj8v on line 3 Notice: Undefined variable: in /in/WBj8v on line 3 1