3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $A=5; function test() { echo $A; } test(); ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: A in /in/0NtW2 on line 6
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: A in /in/0NtW2 on line 6