<?php
/*
* Fetch the value of the element at "index" in "array-value" to store it in "result". Read-only?
* Opcode 编号: 81
*/
$x = array(1,2,3);
$a = 'x';
echo $$a[0];
?>
函数名: (null)
编译后的变量: !0=$x, !1=$a
| 行号 | # | 操作 | 读取 | 扩展 | 返回 | 操作数 |
|---|---|---|---|---|---|---|
| 6 | 0 | INIT_ARRAY | ~0 | 1 | ||
| 1 | ADD_ARRAY_ELEMENT | ~0 | 2 | |||
| 2 | ADD_ARRAY_ELEMENT | ~0 | 3 | |||
| 3 | ASSIGN | !0,~0 | ||||
| 7 | 4 | ASSIGN | !1,'x' | |||
| 8 | 5 | FETCH_DIM_R | $3 | !1,0 | ||
| 6 | FETCH_R | local | $4 | $3 | ||
| 7 | ECHO | $4 | ||||
| 9 | 8 | RETURN | 1 |