global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / flow.php
blob92fbecb50a8a73d7c10f01dba1ee63d1e6da65af
1 <?hh
3 $x = 2 + 3;
4 if($x < 4) {
5 $y = 1 + 2 * 3 / 4 % 5;
6 } else {
7 $y = 6 + 7 - 8 * 9 / 10 % 11;
10 function f() {
11 return 2 + 3 + 4;
14 function g() {
15 return 1 + 7;
18 echo "$y " . f() . " " . g() . "\n";