3v4l.org

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

Process exited with code 153.