3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1;function printA() {global $a;print $a;}printA(); function printAFailed() {print $a;} printAFailed();
based on 4LcSR
Output for 5.0.4 - 7.1.0
1 Notice: Undefined variable: a in /in/L2M9K on line 3
Output for 4.3.0 - 5.0.3
1 Notice: Undefined variable: a in /in/L2M9K on line 3