3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.09 ms | 1394 KiB | 15 Q