- PHP 手册
- PHP 核心:骇客指南
- Zend Engine 2 操作码列表
- Opcode Descriptions and Examples
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 | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
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_RW | local | $4 | $3 | ||
7 | POST_INC | ~5 | $4 | |||
8 | FREE | ~5 | ||||
9 | 9 | RETURN | 1 |
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/internals2.opcodes.fetch-dim-rw.php