3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Flexy { protected function move(); } class Bend implements Flexy { public function move() { echo "bend\n"; } public function anotherMove() { $this->move(); } } $b = new Bend; $b->anotherMove();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Fatal error: Access type for interface method Flexy::move() must be omitted in /in/fLq8N on line 4
Process exited with code 255.

preferences:
183.5 ms | 1395 KiB | 55 Q