3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { function te() { var_dump(__FUNCTION__, __METHOD__); } } $t = new test(); $t->te();
based on aD0sS
Output for 5.0.0 - 7.1.0
string(2) "te" string(8) "test::te"
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /in/mEF8r on line 4 string(2) "te" string(10) "__METHOD__"