3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class a { public static function a() { self::$hoge = new static; } } class b extends a { } b::a(); var_dump(a::$hoge, b::$hoge);
Output for 5.3.0 - 5.4.21
Fatal error: Constructor a::a() cannot be static in /in/pkZHN on line 9
Process exited with code 255.