3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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')));
based on 6p9RN
Output for 5.0.0 - 7.2.0
Array ( [0] => get [1] => do_POST [2] => do_Put [3] => DeLeTe ) Array ( [1] => do_POST [2] => do_Put )
Output for 4.3.0 - 4.4.9
Array ( [0] => get [1] => do_post [2] => do_put [3] => delete ) Array ( [1] => do_post [2] => do_put )