1--TEST-- 2JMP 001: JMP_SET with constant arg 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.opt_debug_level=0x20000 8zend_test.observer.enabled=0 9--EXTENSIONS-- 10opcache 11--FILE-- 12<?php 13function test() { 14 $var = null; 15 $var = $var ?: test2(); 16 return $var; 17} 18?> 19--EXPECTF-- 20$_main: 21 ; (lines=1, args=0, vars=0, tmps=0) 22 ; (after optimizer) 23 ; %s:1-8 240000 RETURN int(1) 25 26test: 27 ; (lines=4, args=0, vars=1, tmps=1) 28 ; (after optimizer) 29 ; %s:2-6 300000 INIT_FCALL_BY_NAME 0 string("test2") 310001 V1 = DO_FCALL_BY_NAME 320002 CV0($var) = QM_ASSIGN V1 330003 RETURN CV0($var) 34