3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Route { function get() {} function do_POST() {} function do_Put() {} function DeLeTe() {} } print_r(get_class_methods('Route')); print_r(preg_grep('^do_?(\\w)+$', get_class_methods('Route')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6p9RN
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'get_class_methods'
          2        SEND_VAL                                                 'Route'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'preg_grep'
          8        SEND_VAL                                                 '%5Edo_%3F%28%5Cw%29%2B%24'
          9        INIT_FCALL                                               'get_class_methods'
         10        SEND_VAL                                                 'Route'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

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

End of function get

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

End of function do_post

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

End of function do_put

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

End of function delete

End of class Route.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.39 ms | 1401 KiB | 19 Q