3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function Foo() { echo 'php4'; } public function __construct() { $this->foo(); } } (new Foo);
Output for 7.0.0 - 7.2.0
php4
Output for 5.3.19 - 5.6.28
Strict Standards: Redefining already defined constructor for class Foo in /in/tjOLY on line 10 php4