3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface foo { public static function atata(); } class bar implements foo { public $tt = 15; private function atata() { echo 'atata'; } } $b = new bar(); $b->atata();
based on DALrK
Output for 7.0.0 - 7.2.0
Fatal error: Cannot make static method foo::atata() non static in class bar in /in/4gV2I on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Cannot make static method foo::atata() non static in class bar in /in/4gV2I on line 9
Process exited with code 255.