3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function showDecimals() {return constant("self::" . __FUNCTION__);} const showDecimals = 'showDecimals'; } //echo A::showDecimals; $a = new A; echo $a->showDecimals();
based on eRatS
Output for 5.3.21 - 7.2.0
showDecimals