- PHP 手册
- PHP 核心:骇客指南
- Zend Engine 2 操作码列表
- Opcode Descriptions and Examples
FETCH_R
PHP code
<?php
/*
* Fetch the value of the varible of "name" to assign it to a variable? Read-only?
* opcode number: 80
*/
$x = 1;
$a = 'x';
echo $$a;
?>
PHP opcodes
Function name: (null)
Compiled variables: !0=$x, !1=$a
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | ASSIGN | !0,1 | |||
7 | 1 | ASSIGN | !1,'x' | |||
8 | 2 | FETCH_R | local | $2 | !1 | |
3 | ECHO | $2 | ||||
9 | 4 | RETURN | 1 |
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/internals2.opcodes.fetch-r.php