3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new StdClass(); $p = &$a; $b[] = $a; $a->r = 5; echo ($b[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/17Tdf
function name:  (null)
number of ops:  11
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        FETCH_DIM_R                                      ~9      !2, 0
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1393 KiB | 13 Q