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; public static function atata() { echo 'atata'; } } $b = new bar(); $b::atata();
based on kN9Yv
Output for 5.3.19 - 5.6.28, 7.0.6 - 7.2.0
Fatal error: Access type for interface method foo::atata() must be omitted in /in/nEI5N 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/nEI5N on line 8
Process exited with code 255.