3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (1 == 5) { $hey = 5; } if ($hey == null) { var_dump('hey'); }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: hey in /in/KrcWl on line 3 string(3) "hey"
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: hey in /in/KrcWl on line 3 string(3) "hey"