3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a { function a() { echo 'construct'; } function __construct() { echo 'plop'; } } new a();
based on XmCNP
Output for 7.0.0 - 7.1.0
plop
Output for 5.0.0 - 5.6.28
Strict Standards: Redefining already defined constructor for class a in /in/WJOGE on line 6 plop
Output for 4.3.0 - 4.4.9
construct