1--TEST--
2JIT FETCH_DIM_R: 005
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.jit=tracing
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13$gens = [];
14for ($i = 0; $i < 5; $i++) {
15    $gens[] = $gens[-1];
16}
17var_dump($gens);
18?>
19--EXPECTF--
20Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
21
22Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
23
24Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
25
26Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
27
28Warning: Undefined array key -1 in %sfetch_dim_r_005.php on line 4
29array(5) {
30  [0]=>
31  NULL
32  [1]=>
33  NULL
34  [2]=>
35  NULL
36  [3]=>
37  NULL
38  [4]=>
39  NULL
40}
41