FETCH_DIM_R

PHP code

<?php
/*
 * Fetch the value of the element at "index" in "array-value" to store it in "result".  Read-only?
 * opcode number: 81
 */
$x = array(1,2,3);
$a = 'x';
echo $$a[0];
?>

PHP opcodes

Function name: (null)

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

line#opfetchextreturnoperands
60INIT_ARRAY  ~01
 1ADD_ARRAY_ELEMENT  ~02
 2ADD_ARRAY_ELEMENT  ~03
 3ASSIGN   !0,~0
74ASSIGN   !1,'x'
85FETCH_DIM_R  $3!1,0
 6FETCH_Rlocal $4$3
 7ECHO   $4
98RETURN   1