略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SEND_VAR

2024-04-25

SEND_VAR

PHP code

<?php
/*
 * Pass the variable value as an actual parameter to a function.  DO_FCALL follows.
 * opcode number: 66
 */
$a = array(1,2,3);
if(
is_array($a)){ return 0; }
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$a

line#op fetchextreturn operands
60 INIT_ARRAY   ~0 1
 1 ADD_ARRAY_ELEMENT   ~0 2
 2 ADD_ARRAY_ELEMENT   ~0 3
 3 ASSIGN     !0,~0
74 SEND_VAR     !0
 5 DO_FCALL  1  'is_array'
 6 JMPZ     $2,->9
 7 RETURN     0
 8 JMP     ->9
89 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.send-var.php

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