3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); ini_set('display_errors',1); class c{ function __construct(){echo "1";} function c(){echo "2";} } $c= new c();
based on udRhX
Output for 5.2.14 - 5.2.17, 5.3.3 - 7.3.0beta1
1
Output for 5.0.0 - 5.2.13, 5.3.0 - 5.3.2
Strict Standards: Redefining already defined constructor for class c in /in/gEAVg on line 6 1
Output for 4.3.0 - 4.4.9
2