1--TEST-- 2SCCP 017: Array assignment 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.opt_debug_level=0x20000 8opcache.preload= 9zend_test.observer.enabled=0 10--EXTENSIONS-- 11opcache 12--FILE-- 13<?php 14function foo(int $x) { 15 $a[0] = 5; 16 $a[1] = $x; 17 $b = $a; 18 $b[0] = 42; 19 return $a[0]; 20} 21?> 22--EXPECTF-- 23$_main: 24 ; (lines=1, args=0, vars=0, tmps=0) 25 ; (after optimizer) 26 ; %ssccp_017.php:1-10 270000 RETURN int(1) 28 29foo: 30 ; (lines=2, args=1, vars=1, tmps=0) 31 ; (after optimizer) 32 ; %ssccp_017.php:2-8 330000 CV0($x) = RECV 1 340001 RETURN int(5) 35