3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface barInterface { public function foo(); } abstract class barAbstract { abstract public function foo(); } class bar extends barAbstract implements barInterface { public function foo() { echo 'hey'; }; }
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected ';', expecting function (T_FUNCTION) in /in/O5a2B on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /in/O5a2B on line 13
Process exited with code 255.

preferences:
189.55 ms | 1399 KiB | 51 Q