Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$x = 5;
function add($y) {
  global $x;
  return $x + $y;
}
echo "$x + 5 is " . add(5);
?>
</body>
</html>
5 + 5 is 10