<?php
/*
*
* Opcode 编号: 94
*/
include './classA.php';
function foo(&$x)
{
print($x);
}
$z = "foo";
$obj = new A();
print $obj->num;
$z($obj->num);
?>
函数名: (null)
编译后的变量: !0=$z, !1=$obj
行号 | # | 操作 | 读取 | 扩展 | 返回 | 操作数 |
---|---|---|---|---|---|---|
6 | 0 | INCLUDE_OR_EVAL | '.%2FclassA.php',INCLUDE | |||
8 | 1 | NOP | ||||
13 | 2 | ASSIGN | !0,'foo' | |||
15 | 3 | ZEND_FETCH_CLASS | :2 | 'A' | ||
4 | NEW | $3 | :2 | |||
5 | DO_FCALL_BY_NAME | 0 | ||||
6 | ASSIGN | !1,$3 | ||||
16 | 7 | FETCH_OBJ_R | $6 | !1,'num' | ||
8 | ~7 | $6 | ||||
9 | FREE | ~7 | ||||
17 | 10 | INIT_FCALL_BY_NAME | !0 | |||
11 | FETCH_OBJ_FUNC_ARG | $8 | !1,'num' | |||
12 | SEND_VAR | $8 | ||||
13 | DO_FCALL_BY_NAME | 1 | ||||
19 | 14 | RETURN | 1 |
函数名: foo
编译后的变量: !0=$x
行号 | # | 操作 | 读取 | 扩展 | 返回 | 操作数 |
---|---|---|---|---|---|---|
8 | 0 | RECV | 1 | |||
10 | 1 | ~0 | !0 | |||
2 | FREE | ~0 | ||||
11 | 3 | RETURN | null |
函数名: foo
编译后的变量: !0=$x
行号 | # | 操作 | 读取 | 扩展 | 返回 | 操作数 |
---|---|---|---|---|---|---|
8 | 0 | RECV | 1 | |||
10 | 1 | ~0 | !0 | |||
2 | FREE | ~0 | ||||
11 | 3 | RETURN | null |