internals2-php-opcodes-php-assign-dim-0

  • Opcode Descriptions and
    Examples
  • ASSIGN_DIM

  • ASSIGN_DIM
  • ASSIGN_DIM

    ASSIGN_DIM

    PHP code

    <?php
    /*
     * 
     * opcode number: 147
     */
    $b 1;
    $a[1][2] = $b;
    ?>

    PHP opcodes

    Function name: (null)

    Compiled variables: !0=$b, !1=$a

    line # op fetch ext return operands
    6 0 ASSIGN       !0,1
    7 1 FETCH_DIM_W     $1 !1,1
      2 ZEND_ASSIGN_DIM       $1,2
      3 ZEND_OP_DATA       !0,$3
    8 4 RETURN       1