略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FETCH_CONSTANT

2024-12-25

FETCH_CONSTANT

PHP code

<?php
/*
 * Fetch the constant value bound to the specified name (name) and stores it into a variable (result).
 * opcode number: 99
 */
define("FOO""something");
echo 
FOO;
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 SEND_VAL     'FOO'
 1 SEND_VAL     'something'
 2 DO_FCALL  2  'define'
73 FETCH_CONSTANT   ~1 'FOO'
 4 ECHO     ~1
85 RETURN     1
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/internals2.opcodes.fetch-constant.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3