internals2-php-opcodes-php-declare-function-1

  • Opcode Descriptions and
    Examples
  • DECLARE_FUNCTION

  • DECLARE_FUNCTION
  • DECLARE_FUNCTION

    DECLARE_FUNCTION

    PHP code

    <?php
    /*
     * 
     * opcode number: 141
     */
    class A{
     function 
    funcA(){
     }
    }
    ?>

    PHP opcodes

    Function name: (null)

    Compiled variables: none

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

    Function name: funcA

    Compiled variables: none

    line # op fetch ext return operands
    8 0 RETURN       null