3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=5; //globle scope function myTest() { // using x inside this function is generate an error echo "variable x inside function is:$x"; } myTest(); ?>
Output for 5.6.30, hhvm-3.15.4 - 3.21.3, 7.0.0 - 7.3.0rc3
Notice: Undefined variable: x in /in/MfCMq on line 5 variable x inside function is:
Output for hhvm-3.22.0
Notice: Undefined variable: x in /in/MfCMq on line -1 variable x inside function is: