3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FluentResolverInterface {} class MutationResolver implements FluentResolverInterface {}; class DebugCommand { public function __construct(FluentResolverInterface $mutation) {} } class Extended extends DebugCommand { public function __construct(MutationResolver $mutation) { parent::__construct($mutation); } } $mutation = new MutationResolver(); $ex = new Extended($mutation);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ86V
function name:  (null)
number of ops:  9
compiled vars:  !0 = $mutation, !1 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'mutationresolver'
   17     1        NEW                                              $2      'MutationResolver'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   18     4        NEW                                              $5      'Extended'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
          8      > RETURN                                                   1

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

End of function __construct

End of class DebugCommand.

Class Extended:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OZ86V
function name:  __construct
number of ops:  5
compiled vars:  !0 = $mutation
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        INIT_STATIC_METHOD_CALL                                  
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   14     4      > RETURN                                                   null

End of function __construct

End of class Extended.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.38 ms | 1002 KiB | 13 Q