3v4l.org

run code in 500+ PHP versions simultaneously
<?php class C { public string $prop = 'x'; } $c = new C; $ao = new ArrayObject($c); var_dump($c->prop);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8JtDq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $c, !1 = $ao
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $2      'C'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    6     3        NEW                                                  $5      'ArrayObject'
          4        SEND_VAR_EX                                                  !0
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !1, $5
    7     7        INIT_FCALL                                                   'var_dump'
          8        FETCH_OBJ_R                                          ~8      !0, 'prop'
          9        SEND_VAL                                                     ~8
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
114.71 ms | 487 KiB | 10 Q