3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new StdClass(); $p = &$a; $b[] = $a; $a->r = 5; var_dump($b[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvMDD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $p, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $3      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    9     3        ASSIGN_REF                                               !1, !0
   12     4        ASSIGN_DIM                                               !2
          5        OP_DATA                                                  !0
   14     6        ASSIGN_OBJ                                               !0, 'r'
          7        OP_DATA                                                  5
   16     8        INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~9      !2, 0
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.2 ms | 1394 KiB | 15 Q