PHP Doku:: FETCH_DIM_FUNC_ARG - internals2.opcodes.fetch-dim-func-arg.html

Verlauf / Chronik / History: (10) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ PHP im Kern: Das Entwicklerhandbuch für die Zend Engine ≥ Zend Engine 2 opcode list ≥ Opcodes ≥ FETCH_DIM_FUNC_ARG

Ein Service von Reinhard Neidl - Webprogrammierung.

Opcodes

<<FETCH_CONSTANT

FETCH_DIM_IS>>

FETCH_DIM_FUNC_ARG

PHP code

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

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

$x = array(0, 1, 2, 3, 4, 5);
$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

Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)