3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface foo { final public static function atata(); } class bar implements foo { public $tt = 15; final public static function atata() { echo 'atata'; } } $b = new bar(); $b->atata();
based on K3rI3
Output for 5.3.19 - 5.6.21, 7.0.6 - 7.2.0
Fatal error: Access type for interface method foo::atata() must be omitted in /in/JcKot on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.5
Fatal error: Cannot override final method foo::atata() in /in/JcKot on line 8
Process exited with code 255.