3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo {} interface Bar {} class Foo1 implements Foo {} class Bar1 extends Foo1 implements Bar {} var_dump((new ReflectionClass(Bar1::class))->getInterfaces());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvrrj
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'foo1'
    6     1        DECLARE_CLASS                                            'bar1', 'foo1'
    8     2        INIT_FCALL                                               'var_dump'
          3        NEW                                              $0      'ReflectionClass'
          4        SEND_VAL_EX                                              'Bar1'
          5        DO_FCALL                                      0          
          6        INIT_METHOD_CALL                                         $0, 'getInterfaces'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar: [no user functions]
Class Foo1: [no user functions]
Class Bar1: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.07 ms | 1394 KiB | 15 Q