xref: /PHP-7.1/Zend/tests/arg_unpack/internal.phpt (revision 2c47dfba)
1--TEST--
2Argument unpacking with internal functions
3--FILE--
4<?php
5
6$arrays = [
7    [1, 2, 3],
8    [4, 5, 6],
9    [7, 8, 9],
10];
11var_dump(array_map(null, ...$arrays));
12
13?>
14--EXPECT--
15array(3) {
16  [0]=>
17  array(3) {
18    [0]=>
19    int(1)
20    [1]=>
21    int(4)
22    [2]=>
23    int(7)
24  }
25  [1]=>
26  array(3) {
27    [0]=>
28    int(2)
29    [1]=>
30    int(5)
31    [2]=>
32    int(8)
33  }
34  [2]=>
35  array(3) {
36    [0]=>
37    int(3)
38    [1]=>
39    int(6)
40    [2]=>
41    int(9)
42  }
43}
44