3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class foo { abstract static function bar(); /* Strict Standards: Static function foo::bar() should not be abstract in filename on line n */ } class boo extends foo { } $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::bar) in /in/F9lVd on line 10
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/F9lVd on line 4 Fatal error: Class boo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (foo::bar) in /in/F9lVd on line 10
Process exited with code 255.

preferences:
168.79 ms | 1395 KiB | 24 Q