3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CommandInterface {} abstract class AbstractCommand implements CommandInterface {} interface PrefixableCommandInterface {} abstract class PrefixableCommand extends AbstractCommand implements PrefixableCommandInterface { } class StringSet extends PrefixableCommand {} class Tester { public function executeCommand(CommandInterface $command) {} } $t = new Tester(); $t->executeCommand(new StringSet);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jZRPn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'abstractcommand'
   11     1        DECLARE_CLASS                                            'prefixablecommand', 'abstractcommand'
   14     2        DECLARE_CLASS                                            'stringset', 'prefixablecommand'
   21     3        NEW                                              $1      'Tester'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
   22     6        INIT_METHOD_CALL                                         !0, 'executeCommand'
          7        NEW                                              $4      'StringSet'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $4
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class CommandInterface: [no user functions]
Class AbstractCommand: [no user functions]
Class PrefixableCommandInterface: [no user functions]
Class PrefixableCommand: [no user functions]
Class StringSet: [no user functions]
Class Tester:
Function executecommand:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jZRPn
function name:  executeCommand
number of ops:  2
compiled vars:  !0 = $command
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function executecommand

End of class Tester.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1393 KiB | 13 Q