3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class foo { public function zzz() {} abstract protected static function bar(); abstract protected static function baz(); public function ggg() {} /* Strict Standards: Static function foo::bar() should not be abstract in filename on line n */ } class boo extends foo { protected static function bar() {} } $b = new boo;
based on AmkQ2
Output for 7.0.0
Fatal error: Class boo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (foo::baz) in /in/Jhl4U on line 14
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Strict Standards: Static function foo::bar() should not be abstract in /in/Jhl4U on line 5 Strict Standards: Static function foo::baz() should not be abstract in /in/Jhl4U on line 6 Fatal error: Class boo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (foo::baz) in /in/Jhl4U on line 14
Process exited with code 255.