3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function __construct() { } function A() { } } class B { function B() { } function __construct() { } }
Output for 4.3.0 - 4.4.9, 7.0.0 - 7.1.0
Output for 5.2.14 - 5.2.17, 5.3.3 - 5.6.28
Strict Standards: Redefining already defined constructor for class B in /in/QsEdC on line 14
Output for 5.0.0 - 5.2.13, 5.3.0 - 5.3.2
Strict Standards: Redefining already defined constructor for class A in /in/QsEdC on line 6 Strict Standards: Redefining already defined constructor for class B in /in/QsEdC on line 14