3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=5; $y=10; function add() { global $x,$y; $z=$x+$y; echo $z; } echo '$x value is'.$x; echo "<br>"; echo '$y value is'.$y;
based on 75FiW
Output for 4.3.0 - 7.2.0
$x value is5<br>$y value is10