3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ParentClass {} class ChildClass extends ParentClass {} class TestClass { public function __construct(ParentClass $parentClass) { } } $childClass = new ChildClass(); $test = new TestClass($childClass); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e5dVC
function name:  (null)
number of ops:  8
compiled vars:  !0 = $childClass, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'ChildClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   18     3        NEW                                              $5      'TestClass'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
   19     7      > RETURN                                                   1

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

End of function __construct

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.91 ms | 1393 KiB | 13 Q