3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { public function bar() { } } class e { use foo { bar as private; bar as bat; } } var_dump(get_class_methods('e'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/80gKF
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'e'
   14     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'get_class_methods'
          3        SEND_VAL                                                 'e'
          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/80gKF
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 e: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.25 ms | 997 KiB | 15 Q