1--TEST--
2array_diff() with single array argument
3--FILE--
4<?php
5
6$array = ["a" => 42];
7$cmp = function($a, $b) { return $a <=> $b; };
8var_dump(array_diff($array));
9var_dump(array_diff_key($array));
10var_dump(array_diff_ukey($array, $cmp));
11var_dump(array_diff_assoc($array));
12var_dump(array_diff_uassoc($array, $cmp));
13var_dump(array_udiff($array, $cmp));
14var_dump(array_udiff_assoc($array, $cmp));
15var_dump(array_udiff_uassoc($array, $cmp, $cmp));
16
17?>
18--EXPECT--
19array(1) {
20  ["a"]=>
21  int(42)
22}
23array(1) {
24  ["a"]=>
25  int(42)
26}
27array(1) {
28  ["a"]=>
29  int(42)
30}
31array(1) {
32  ["a"]=>
33  int(42)
34}
35array(1) {
36  ["a"]=>
37  int(42)
38}
39array(1) {
40  ["a"]=>
41  int(42)
42}
43array(1) {
44  ["a"]=>
45  int(42)
46}
47array(1) {
48  ["a"]=>
49  int(42)
50}
51