run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function test() { var_dump(__FUNCTION__); var_dump(__METHOD__); } } $t = new Test();
based on pYAQW
Output for 7.0.0 - 7.2.0
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Test has a deprecated constructor in /in/4MQ9Q on line 3 string(4) "test" string(10) "Test::test"
Output for 5.6.0 - 5.6.30, hhvm-3.15.4
string(4) "test" string(10) "Test::test"