3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [4]; $o = new stdClass(); $o->foo = &$arr[0]; $arr[0] = 10; print_r($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6KKQu
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    5     4        FETCH_DIM_W                                      $7      !0, 0
          5        MAKE_REF                                         $8      $7
          6        ASSIGN_OBJ_REF                                           !1, 'foo'
          7        OP_DATA                                                  $8
    7     8        ASSIGN_DIM                                               !0, 0
          9        OP_DATA                                                  10
    9    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.65 ms | 1009 KiB | 14 Q