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/J6NTl
function name:  (null)
number of ops:  9
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        FETCH_CONSTANT                                   ~6      'childClass'
          5        SEND_VAL_EX                                              ~6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   19     8      > 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/J6NTl
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:
170.94 ms | 1393 KiB | 13 Q