function_arguments_003.phpt 237 B

1234567891011121314151617
  1. --TEST--
  2. Function Argument Parsing #003
  3. --FILE--
  4. <?php
  5. const a = 10;
  6. function t1($a = 1 + 1, $b = 1 << 2, $c = "foo" . "bar", $d = a * 10) {
  7. var_dump($a, $b, $c, $d);
  8. }
  9. t1();
  10. ?>
  11. --EXPECT--
  12. int(2)
  13. int(4)
  14. string(6) "foobar"
  15. int(100)