3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=15; $b=17; $c=0; function test () { global $a, $b, $c; $c=$a+$b; } test (); echo $c; ?>
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
32
Output for 5.2.11 - 5.3.27, 5.4.0 - 5.4.17
32