1--TEST-- 2DCE 005: Elimination of assignment to non-escaping objects (can't remove NEW yet) 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 13class A { 14} 15function foo(int $x) { 16 $a = new A; 17 $a->foo = $x; 18} 19--EXPECTF-- 20$_main: ; (lines=1, args=0, vars=0, tmps=0) 21 ; (after optimizer) 22 ; %sdce_005.php:1-8 23L0 (8): RETURN int(1) 24 25foo: ; (lines=2, args=1, vars=1, tmps=0) 26 ; (after optimizer) 27 ; %sdce_005.php:4-7 28L0 (4): CV0($x) = RECV 1 29L1 (7): RETURN null 30