3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function Foo() { echo 1; } function __construct() { echo 2; } } $a = new Foo();
Output for 7.0.0 - 7.2.0
2
Output for 5.0.0 - 5.6.28
Strict Standards: Redefining already defined constructor for class Foo in /in/7eg0E on line 7 2
Output for 4.3.0 - 4.4.9
1