internals2-php-opcodes-php-init-string-3

  • Opcode Descriptions and
    Examples
  • INIT_STRING

  • INIT_STRING
  • INIT_STRING

    INIT_STRING

    PHP code

    <?php
    /*
     * appears to create a string variable in result
     * opcode number: 53
     */
    echo "hello$a world";
    ?>

    PHP opcodes

    Function name: (null)

    Compiled variables: !0=$a

    line # op fetch ext return operands
    6 0 ADD_STRING     ~0 ‘hello’
      1 ADD_VAR     ~0 ~0,!0
      2 ADD_STRING     ~0 ~0,’+world’
      3 ECHO       ~0
    7 4 RETURN       1