3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.62 ms | 1392 KiB | 13 Q