3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; /* global scope */ function test() { var_dump($a); /* reference to local scope variable */ } test(); ?>
Output for 5.0.4 - 7.1.7
Notice: Undefined variable: a in /in/g4XuQ on line 6 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/g4XuQ on line 6 NULL