Arquivos
hhvm/hphp/test/vm/locals.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

15 linhas
246 B
PHP

<?php
function f($a, $b, $c) {
$x = $a + $b;
$y = $a - $b;
if ($x <= 0 && $x >= 0) $x = 1;
if ($y <= 0 && $y >= 0) $y = 1;
$z = $c - 1;
if ($z <= 0) {
return $x * $y;
}
return f($x+0, $y+0, $z+0);
}
echo f(12,7,5);
echo "\n";