Arquivos
hhvm/hphp/test/vm/flow.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

21 linhas
213 B
PHP

<?php
$x = 2 + 3;
if($x < 4) {
$y = 1 + 2 * 3 / 4 % 5;
} else {
$y = 6 + 7 - 8 * 9 / 10 % 11;
}
function f() {
return 2 + 3 + 4;
}
function g() {
return 1 + 7;
}
echo "$y " . f() . " " . g() . "\n";