summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/compact_order.phpt
blob: bf6051cc4905781c07be94728858baaae40ff8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
compact() and hashmap order
--FILE--
<?php

$foo = null;
$bar = null;

var_dump(compact('foo', 'bar'));
var_dump(compact('bar', 'foo'));

?>
--EXPECT--
array(2) {
  ["foo"]=>
  NULL
  ["bar"]=>
  NULL
}
array(2) {
  ["bar"]=>
  NULL
  ["foo"]=>
  NULL
}