3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Hero {} abstract class Superhero implements Hero {} class Batman extends Superhero {} var_dump([ "Superhero" => class_implements('Superhero'), "Batman" => class_implements('Batman') ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QnB1
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'superhero'
    7     1        DECLARE_CLASS                                            'batman', 'superhero'
    9     2        INIT_FCALL                                               'var_dump'
   10     3        INIT_FCALL                                               'class_implements'
          4        SEND_VAL                                                 'Superhero'
          5        DO_ICALL                                         $0      
          6        INIT_ARRAY                                       ~1      $0, 'Superhero'
   11     7        INIT_FCALL                                               'class_implements'
          8        SEND_VAL                                                 'Batman'
          9        DO_ICALL                                         $2      
         10        ADD_ARRAY_ELEMENT                                ~1      $2, 'Batman'
         11        SEND_VAL                                                 ~1
         12        DO_ICALL                                                 
   12    13      > RETURN                                                   1

Class Hero: [no user functions]
Class Superhero: [no user functions]
Class Batman: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.51 ms | 1398 KiB | 17 Q