略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: FETCH_FUNC_ARG

2024-12-21

FETCH_FUNC_ARG

PHP code

<?php
/*
 * 
 * opcode number: 92
 */
function foo($x)
{
}

$x 1;
$y "x";
$z "foo";

$z($$y);

?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$x, !1=$y, !2=$z

line#op fetchextreturn operands
60 NOP      
101 ASSIGN     !0,1
112 ASSIGN     !1,'x'
123 ASSIGN     !2,'foo'
144 INIT_FCALL_BY_NAME     !2
 5 FETCH_FUNC_ARGlocal  $3 !1
 6 SEND_VAR     $3
 7 DO_FCALL_BY_NAME  1   
168 RETURN     1

Function name: foo

Compiled variables: !0=$x

line#op fetchextreturn operands
60 RECV     1
81 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.fetch-func-arg.php

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