3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.3.20 - 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.