3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $x->r = 'rrr'; $x->g = 40; $a = array(); $a[10]->b[] = 1; $a[10]->sum += 500; print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pMa74
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'r'
          4        OP_DATA                                                  'rrr'
    4     5        ASSIGN_OBJ                                               !0, 'g'
          6        OP_DATA                                                  40
    5     7        ASSIGN                                                   !1, <array>
    6     8        FETCH_DIM_W                                      $8      !1, 10
          9        FETCH_OBJ_W                                      $9      $8, 'b'
         10        ASSIGN_DIM                                               $9
         11        OP_DATA                                                  1
    7    12        FETCH_DIM_RW                                     $11     !1, 10
         13        ASSIGN_OBJ_OP                                 1          $11, 'sum'
         14        OP_DATA                                                  500
    9    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.19 ms | 1394 KiB | 15 Q