1--TEST--
2Behavior of func_get_args() and friends with named parameters
3--FILE--
4<?php
5
6function test($a, $b = 'b', $c = 'c') {
7    var_dump(func_num_args());
8    var_dump(func_get_args());
9    var_dump(func_get_arg(0));
10    var_dump(func_get_arg(1));
11    var_dump(func_get_arg(2));
12}
13
14test(c: 'C', a: 'A');
15
16?>
17--EXPECT--
18int(3)
19array(3) {
20  [0]=>
21  string(1) "A"
22  [1]=>
23  string(1) "b"
24  [2]=>
25  string(1) "C"
26}
27string(1) "A"
28string(1) "b"
29string(1) "C"
30