1--TEST-- 2SCCP 001: Constant propagation 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() { 13 $a = 1; 14 $b = $a + 2; 15 $a += $b; 16 return $a; 17} 18?> 19--EXPECTF-- 20$_main: ; (lines=1, args=0, vars=0, tmps=0) 21 ; (after optimizer) 22 ; %ssccp_001.php:1-9 23L0 (9): RETURN int(1) 24 25foo: ; (lines=1, args=0, vars=0, tmps=0) 26 ; (after optimizer) 27 ; %ssccp_001.php:2-7 28L0 (6): RETURN int(4) 29