1--TEST--
2Test arrays starting with negative indices
3--FILE--
4<?php
5
6$a = array_fill(-2, 3, true);
7$b = [-2 => true, true, true];
8$c = ["string" => true, -2 => true, true, true];
9unset($c["string"]);
10$d[-2] = true;
11$d[] = true;
12$d[] = true;
13$e = [-2 => false];
14array_pop($e);
15$e[] = true;
16$e[] = true;
17$e[] = true;
18
19var_dump($a === $b && $b === $c && $c === $d && $d == $e);
20var_dump($a);
21?>
22--EXPECT--
23bool(true)
24array(3) {
25  [-2]=>
26  bool(true)
27  [-1]=>
28  bool(true)
29  [0]=>
30  bool(true)
31}
32