3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function __construct() {} } class bar extends foo { private function __construct() {} }
Output for 5.3.0 - 5.4.30
Fatal error: Access level to bar::__construct() must be public (as in class foo) in /in/CX8Xj on line 8
Process exited with code 255.