3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace B; class A { public static function __construct() {} public function A() {} }
Output for 5.3.3 - 5.3.27, 5.4.0 - 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.

preferences:
179.89 ms | 1395 KiB | 57 Q