3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public ?int $a; public ?string $b; } $c = new C(); $c->a = &$prop; $c->b = &$prop; $prop = '43';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/defVI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $c, !1 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN_OBJ_REF                                           !0, 'a'
          4        OP_DATA                                                  !1
   10     5        ASSIGN_OBJ_REF                                           !0, 'b'
          6        OP_DATA                                                  !1
   11     7        ASSIGN                                                   !1, '43'
          8      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.9 ms | 997 KiB | 13 Q