1--TEST--
2Type inference 024: FETCH_DIM_W
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9function foo() {
10    for ($cnt = 0; $cnt < 6; $cnt++) {
11        $b = new SplFixedArray(1);
12        $b[0] = $a;
13        $g = &$b[0];
14        $b = new SplFixedArray(1);
15        $b[0] = $b;
16        $g = &$b[0];
17    }
18}
19@foo();
20?>
21DONE
22--EXPECT--
23DONE
24