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