3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_sum() { global $var; $var = 5; } $var = 10; get_sum(); echo $var;
based on q8vsE
Output for 4.3.0 - 7.2.0
5