PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

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

PHP Manual