3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { } class bar extends foo { function whoami() { echo __CLASS__; echo get_class($this); } } $bar = new bar(); $bar->whoami();
Output for 4.3.0 - 7.1.0
barbar