3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { abstract public function bar(); } function () implements Foo {};
Output for 7.0.0 - 7.0.5
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/1MGJV on line 6
Process exited with code 255.
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Foo::bar) in /in/1MGJV on line 4
Process exited with code 255.

preferences:
199.21 ms | 1395 KiB | 68 Q