略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SEND_VAL

2024-05-02

SEND_VAL

PHP code

<?php
/*
 * Pass the constant value as an actual parameter to a function.  DO_FCALL follows.
 * opcode number: 65
 */
function funcA($msg){
    print 
$msg;
}

funcA('HELLO');

defined('IN_PHPBB');
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 NOP      
101 SEND_VAL     'HELLO'
 2 DO_FCALL  1  'funca'
123 SEND_VAL     'IN_PHPBB'
 4 DO_FCALL  1  'defined'
135 RETURN     1

Function name: funcA

Compiled variables: !0=$msg

line#op fetchextreturn operands
60 RECV     1
71 PRINT   ~0 !0
 2 FREE     ~0
83 RETURN     null
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.send-val.php

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