3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class foo { abstract protected static function bar(); /* 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 F9lVd
Output for 7.0.0
Parse error: syntax error, unexpected ';', expecting function (T_FUNCTION) in /in/EkkCj on line 10
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Strict Standards: Static function foo::bar() should not be abstract in /in/EkkCj on line 4 Parse error: syntax error, unexpected ';', expecting function (T_FUNCTION) in /in/EkkCj on line 10
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Strict Standards: Static function foo::bar() should not be abstract in /in/EkkCj on line 4 Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /in/EkkCj on line 10
Process exited with code 255.