3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php global $a; $a=5; function foo() { echo $a; } foo();
Output for 5.0.4 - 7.3.0rc4
Notice: Undefined variable: a in /in/94QbQ on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/94QbQ on line 7