3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = new stdClass(); $row->b = 0; $item = array('a' => 'b'); $row->$item['a'] = 1; echo $row->b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aQmAa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $row, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'b'
          4        OP_DATA                                                  0
    6     5        ASSIGN                                                   !1, <array>
    7     6        FETCH_OBJ_W                                      $7      !0, !1
          7        ASSIGN_DIM                                               $7, 'a'
          8        OP_DATA                                                  1
   10     9        FETCH_OBJ_R                                      ~9      !0, 'b'
         10        ECHO                                                     ~9
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1392 KiB | 13 Q