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