3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Insurance { function clsName(self) { echo get_class(); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName();
based on 2qUMA
Output for 7.1.25 - 7.3.1
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /in/LgZBg on line 5
Process exited with code 255.