3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { function foo(); function bar(); } interface b { function foo(); } abstract class c { abtract function bar(); } class x extends c implements a, b { function foo() { } function bar() {} }
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'abtract' (T_STRING), expecting function (T_FUNCTION) in /in/XXXCT on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /in/XXXCT on line 12
Process exited with code 255.

preferences:
185.03 ms | 1399 KiB | 53 Q