3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = new TestClass(); class TestClass { function TestClass() { print "hello!"; } function __construct() { print "hello!"; } }
based on jTDfn
Output for 4.3.0 - 4.4.9, hhvm-3.12.0, 7.0.0 - 7.1.0
hello!
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Strict Standards: Redefining already defined constructor for class TestClass in /in/NBX6r on line 10 hello!