3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace B; class A { public static function __construct() {} public function A() {} }
Output for 5.3.3 - 5.4.21
Fatal error: Constructor B\A::__construct() cannot be static in /in/Mq4Ko on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.2
Strict Standards: Redefining already defined constructor for class B\A in /in/Mq4Ko on line 3 Fatal error: Constructor B\A::__construct() cannot be static in /in/Mq4Ko on line 3
Process exited with code 255.