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 8--SKIPIF-- 9<?php require_once('skipif.inc'); ?> 10--FILE-- 11<?php 12function test() { 13 $var = null; 14 $var = $var ?: test2(); 15 return $var; 16} 17?> 18--EXPECTF-- 19$_main: 20 ; (lines=1, args=0, vars=0, tmps=0) 21 ; (after optimizer) 22 ; %s:1-8 230000 RETURN int(1) 24 25test: 26 ; (lines=4, args=0, vars=1, tmps=1) 27 ; (after optimizer) 28 ; %s:2-6 290000 INIT_FCALL_BY_NAME 0 string("test2") 300001 V1 = DO_FCALL_BY_NAME 310002 CV0($var) = QM_ASSIGN V1 320003 RETURN CV0($var) 33