3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $field = null; } $test = new foo(); $test->field = '1111'; var_dump([ $test->field, $test['field'], ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sMqpd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    8     3        ASSIGN_OBJ                                               !0, 'field'
          4        OP_DATA                                                  '1111'
    9     5        INIT_FCALL                                               'var_dump'
   10     6        FETCH_OBJ_R                                      ~5      !0, 'field'
          7        INIT_ARRAY                                       ~6      ~5
   11     8        FETCH_DIM_R                                      ~7      !0, 'field'
          9        ADD_ARRAY_ELEMENT                                ~6      ~7
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
   12    12      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.05 ms | 1394 KiB | 15 Q