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