3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $u = 1; function f() { global $u; //unset($u); $u = 2; } function f2() { global $u; var_dump($u); } f(); f2();
based on 35Yaq
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
int(2)