PHP - Manual: ADD_INTERFACE
2024-12-21
<?php
/*
* adds an implemented interface to a class declaration
* opcode number: 144
*/
interface iA {
}
class A implements iA {
}
?>
Function name: (null)
Compiled variables: none
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | NOP | ||||
1 | DECLARE_CLASS | 'a' | ||||
2 | ADD_INTERFACE | 'iA' | ||||
3 | VERIFY_ABSTRACT_CLASS | |||||
3 | RETURN | 1 |
官方地址:https://www.php.net/manual/en/internals2.opcodes.add-interface.php