3v4l.org

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

Class Foo:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30HRL
function name:  a
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function a

End of class Foo.

Class Bar:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30HRL
function name:  b
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function b

End of class Bar.

Class Baz:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30HRL
function name:  c
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function c

End of class Baz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.21 ms | 1395 KiB | 15 Q