3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { public function bar() { } } class c { use foo { bar as private bat; } } var_dump(get_class_methods('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K9o6Y
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'c'
   13     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'get_class_methods'
          3        SEND_VAL                                                 'c'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function bar

End of class foo.

Class c: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.17 ms | 997 KiB | 15 Q