Arquivos
hhvm/hphp/test/vm/hopt_bitops.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
309 B
PHP

<?php
// Copyright 2004-present Facebook. All Rights Reserved.
function foo($a, $b){
return $a & $b;
}
function test($a, $b) {
echo "test foo($a, $b)\n";
for ($i = 0; $i < 20; $i++) {
$x = foo($a, $b);
echo $x;
echo ", ";
}
echo "\n";
}
test(true, true);
test(1, 3);
test( 2.3, 4.6);