Php/docs/internals2.opcodes.declare-class

提供:Dev Guides
< Php
2020年12月14日 (月) 11:22時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

DECLARE_CLASS

PHP コード

<?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";    }}?>

PHP オペコード

関数名: (null)

コンパイルされた変数: none

line # op fetch ext return operands
6 0 NOP        
11 1 RETURN       1

関数名: methodA

コンパイルされた変数: none

line # op fetch ext return operands
8 0 ECHO       'hello+world'
9 1 RETURN       null