xref: /PHP-8.1/ext/opcache/tests/opt/sccp_016.phpt (revision e9f783fc)
1--TEST--
2SCCP 016: Used constant instructions should be replaced with QM_ASSIGN
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.opt_debug_level=0x20000
8opcache.preload=
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13return isset($undef) || php_sapi_name() == php_sapi_name();
14?>
15--EXPECTF--
16$_main:
17     ; (lines=4, args=0, vars=1, tmps=1)
18     ; (after optimizer)
19     ; %ssccp_016.php:1-4
200000 T1 = ISSET_ISEMPTY_CV (isset) CV0($undef)
210001 T1 = JMPNZ_EX T1 0003
220002 T1 = QM_ASSIGN bool(true)
230003 RETURN T1
24