3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A {} class B implements A {} class C extends B {} class D extends B implements A {} $bRef = new \ReflectionClass('B'); var_dump($bRef->implementsInterface('A'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tRhn6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bRef
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'b'
    6     1        DECLARE_CLASS                                            'c', 'b'
    7     2        DECLARE_CLASS                                            'd', 'b'
    9     3        NEW                                              $1      'ReflectionClass'
          4        SEND_VAL_EX                                              'B'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'implementsInterface'
          9        SEND_VAL_EX                                              'A'
         10        DO_FCALL                                      0  $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]
Class C: [no user functions]
Class D: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.92 ms | 1394 KiB | 15 Q