PHP 5.4.35 Released

INIT_ARRAY

PHP code

<?php
/*
 * Allocate a new array with elem-value as the first element of the array.  Followed by ADD_ARRAY_ELEMENT.
 * opcode number: 71
 */
$a = array(1,2,3);
print_r($a);
?>

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  'print_r'
86 RETURN     1
add a note add a note

User Contributed Notes

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