--TEST-- SCCP 012: Conditional Constant Propagation of non-escaping object properties --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 opcache.opt_debug_level=0x20000 --SKIPIF-- --FILE-- foo = 0; $i = 1; $c = $i < 2; if ($c) { $k = 2 * $i; $o->foo = $i; echo $o->foo; } $o->foo += 2; $o->foo++; echo $o->foo; } ?> --EXPECTF-- $_main: ; (lines=1, args=0, vars=0, tmps=0) ; (after optimizer) ; %ssccp_012.php:1-17 L0 (17): RETURN int(1) foo: ; (lines=3, args=0, vars=0, tmps=0) ; (after optimizer) ; %ssccp_012.php:2-15 L0 (10): ECHO int(1) L1 (14): ECHO int(4) L2 (15): RETURN null