3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 1; function f1() { $b = 2; function f2() { global $a, $b; var_dump($a, $b); } f2(); } f1();
Output for 4.3.0 - 7.1.0
int(1) NULL