1--TEST--
2array_count_values()
3--FILE--
4<?php
5$arrays = array (
6	array (),
7	array (0),
8	array (1),
9	array (-1),
10	array (0, 0),
11	array (0, 1),
12	array (1, 1),
13	array (1, "hello", 1, "world", "hello"),
14	array ("hello", "world", "hello"),
15	array ("", "world", "", "hello", "world", "hello", "hello", "world", "hello"),
16	array (0, array (1, "hello", 1, "world", "hello")),
17	array (1, array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello")),
18);
19
20foreach ($arrays as $item) {
21	var_dump (@array_count_values ($item));
22	echo "\n";
23}
24?>
25--EXPECT--
26array(0) {
27}
28
29array(1) {
30  [0]=>
31  int(1)
32}
33
34array(1) {
35  [1]=>
36  int(1)
37}
38
39array(1) {
40  [-1]=>
41  int(1)
42}
43
44array(1) {
45  [0]=>
46  int(2)
47}
48
49array(2) {
50  [0]=>
51  int(1)
52  [1]=>
53  int(1)
54}
55
56array(1) {
57  [1]=>
58  int(2)
59}
60
61array(3) {
62  [1]=>
63  int(2)
64  ["hello"]=>
65  int(2)
66  ["world"]=>
67  int(1)
68}
69
70array(2) {
71  ["hello"]=>
72  int(2)
73  ["world"]=>
74  int(1)
75}
76
77array(3) {
78  [""]=>
79  int(2)
80  ["world"]=>
81  int(3)
82  ["hello"]=>
83  int(4)
84}
85
86array(1) {
87  [0]=>
88  int(1)
89}
90
91array(1) {
92  [1]=>
93  int(1)
94}
95