xref: /PHP-8.2/ext/opcache/tests/opt/sccp_016.phpt (revision e48a5c14)
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=
9zend_test.observer.enabled=0
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14return isset($undef) || php_sapi_name() == php_sapi_name();
15?>
16--EXPECTF--
17$_main:
18     ; (lines=4, args=0, vars=1, tmps=1)
19     ; (after optimizer)
20     ; %ssccp_016.php:1-4
210000 T1 = ISSET_ISEMPTY_CV (isset) CV0($undef)
220001 T1 = JMPNZ_EX T1 0003
230002 T1 = QM_ASSIGN bool(true)
240003 RETURN T1
25