3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Insurance{ function clsName(){ //echo get_class($this); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName(); ?>
based on 2jj4T
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method Insurance::clsName() should not be called statically in /in/VRWMQ on line 11
Output for 5.3.21 - 5.6.28
Strict Standards: Non-static method Insurance::clsName() should not be called statically in /in/VRWMQ on line 11