3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Insurance { function clsName() { echo get_class(); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName();
based on jevpq
Output for 7.1.25 - 7.3.1
Insurance Deprecated: Non-static method Insurance::clsName() should not be called statically in /in/l5cmi on line 12 Insurance