3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function m1() {} function m2() {} } var_dump(get_class_methods(A));
Output for 7.2.0 - 7.3.0rc6
Warning: Use of undefined constant A - assumed 'A' (this will throw an Error in a future version of PHP) in /in/5IPX8 on line 8 array(2) { [0]=> string(2) "m1" [1]=> string(2) "m2" }
Output for 4.3.0 - 7.1.20
Notice: Use of undefined constant A - assumed 'A' in /in/5IPX8 on line 8 array(2) { [0]=> string(2) "m1" [1]=> string(2) "m2" }