3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function test() { } } $test = new Test; var_dump($test);
Output for 7.1.0 - 7.3.0beta1
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/jrlc4 on line 3 object(Test)#1 (0) { }
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0
object(Test)#1 (0) { }