3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __construct() {} function __construct($foo) {} }
based on 8sjbc
Output for 5.0.0 - 5.4.35
Fatal error: Cannot redeclare A::__construct() in /in/PrBO5 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot redeclare __construct() in /in/PrBO5 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot redeclare __construct() in /in/PrBO5 on line 5