3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { function t() { echo __METHOD__; } } function test() { echo __FUNCTION__; } $t = new test; $t->t(); test();
Output for 5.0.0 - 7.1.0
test::ttest
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant __METHOD__ - assumed '__METHOD__' in /in/iT8lH on line 4 __METHOD__test