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

27 linhas
365 B
PHP

<?php
error_reporting(0);
function foo($a, $b=22, $c=33) {
echo "$a/$b/$c\n";
}
function main() {
foo(1, 2, 3, 4);
foo(1, 2, 3);
foo(1, 2);
foo(1);
foo();
function out_of_order($a=44, $b, $c=66) {
echo "$a/$b/$c\n";
}
out_of_order(4, 5, 6, 7);
out_of_order(4, 5, 6);
out_of_order(4, 5);
out_of_order(4);
out_of_order();
}
main();