1--TEST-- 2JIT FETCH_DIM_R: 012 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7--FILE-- 8<?php 9function foo() { 10 $a = 0; $a1 = []; $a2 = []; 11 for($i = 0; $i < 6; $i++) { 12 $a1[] = &$y; 13 $a2["$a1[$a] "] = $a += $y; 14 } 15 var_dump($a1, $a2); 16} 17foo(); 18?> 19--EXPECT-- 20array(6) { 21 [0]=> 22 &NULL 23 [1]=> 24 &NULL 25 [2]=> 26 &NULL 27 [3]=> 28 &NULL 29 [4]=> 30 &NULL 31 [5]=> 32 &NULL 33} 34array(1) { 35 [" "]=> 36 int(0) 37} 38