3v4l.org

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

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.77 ms | 1399 KiB | 15 Q