3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Image {} class Headed extends Image { } class Dimension { function __construct( Image $image) { } } $h = new Headed; $d = new Dimension($h); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pf215
function name:  (null)
number of ops:  8
compiled vars:  !0 = $h, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Headed'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        NEW                                              $5      'Dimension'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
   17     7      > RETURN                                                   1

Class Image: [no user functions]
Class Headed: [no user functions]
Class Dimension:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pf215
function name:  __construct
number of ops:  2
compiled vars:  !0 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   11     1      > RETURN                                                   null

End of function __construct

End of class Dimension.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.07 ms | 1384 KiB | 13 Q