3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function __construct() { var_dump(new A); } } new A;
based on vpood
Output for 7.0.0 - 7.0.2
Fatal error: Constructor A::__construct() cannot be static in /in/6Ceed on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.17
Fatal error: Constructor A::__construct() cannot be static in /in/6Ceed on line 9
Process exited with code 255.