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.
To Top