3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class trick { function doit() { print_r(__CLASS__); } function doitagain() { print_r(get_class($this)); } } $obj=new trick(); $obj->doit(); $obj->doitagain();
Output for 4.3.0 - 7.2.0
tricktrick