3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $browser = "name"; function myTest() { global $browser; $browser = "david"; } myTest(); echo $browser; // outputs 15 ?>
based on 8rb7f
Output for 4.3.0 - 7.1.7
david