FETCH_DIM_RW

PHP code

<?php
/*
 * Fetch the value of the element at "index" in "array-value" to store it in "result".
 * opcode number: 87
 */
$x = array(1,2,3);
$a = 'x';
$$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_RWlocal $4$3
 7POST_INC  ~5$4
 8FREE   ~5
99RETURN   1