3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
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.5.24 - 5.5.30, 5.6.8 - 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.

preferences:
164.18 ms | 1387 KiB | 24 Q