PHP - Manual: DECLARE_CLASS
2024-12-21
<?php
/*
* Declare a class with the name of class-name as the implementation specified by ID.
* opcode number: 139
*/
class A {
function methodA(){
echo "hello world";
}
}
?>
Function name: (null)
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | NOP | ||||
11 | 1 | RETURN | 1 |
Function name: methodA
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
8 | 0 | ECHO | 'hello+world' | |||
9 | 1 | RETURN | null |
官方地址:https://www.php.net/manual/en/internals2.opcodes.declare-class.php