FETCH_DIM_FUNC_ARG

PHP code

<?php
/*
 * 
 * opcode number: 93
 */

function foo(&$x)
{
  print(
$x);
}

$x = array(012345);
$z "foo";

$z($x[0]);

?>

PHP opcodes

Function name: (null)

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

line#op fetchextreturn operands
70 NOP      
121 INIT_ARRAY   ~0 0
 2 ADD_ARRAY_ELEMENT   ~0 1
 3 ADD_ARRAY_ELEMENT   ~0 2
 4 ADD_ARRAY_ELEMENT   ~0 3
 5 ADD_ARRAY_ELEMENT   ~0 4
 6 ADD_ARRAY_ELEMENT   ~0 5
 7 ASSIGN     !0,~0
138 ASSIGN     !1,'foo'
159 INIT_FCALL_BY_NAME     !1
 10 FETCH_DIM_FUNC_ARG   $3 !0,0
 11 SEND_VAR     $3
 12 DO_FCALL_BY_NAME  1   
1713 RETURN     1

Function name: foo

Compiled variables: !0=$x

line#op fetchextreturn operands
70 RECV     1
91 PRINT   ~0 !0
 2 FREE     ~0
103 RETURN     null
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top