1--TEST--
2JIT FETCH_DIM_R: 002
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7;opcache.jit_debug=257
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12function foo($n) {
13    $a = array(1,2,3,""=>4,"ab"=>5,"2x"=>6);
14    var_dump($a[$n]);
15}
16foo(0);
17foo(2);
18foo(1.0);
19foo("0");
20foo("2");
21foo(false);
22foo(true);
23foo(null);
24foo("ab");
25$x="a";
26$y="b";
27foo($x.$y);
28foo("2x");
29$x=2;
30$y="x";
31foo($x.$y);
32?>
33--EXPECT--
34int(1)
35int(3)
36int(2)
37int(1)
38int(3)
39int(1)
40int(2)
41int(4)
42int(5)
43int(5)
44int(6)
45int(6)
46