internals2-php-opcodes-php-add-interface-5

  • Opcode Descriptions and
    Examples
  • ADD_INTERFACE

  • ADD_INTERFACE
  • ADD_INTERFACE

    ADD_INTERFACE

    PHP code

    <?php 
    /*
     * adds an implemented interface to a class declaration
     * opcode number: 144
     */
    interface iA {
    }

    class implements iA {
    }
    ?>

    PHP opcodes

    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