3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface plop { public function foo(); } abstract bar implements plop { abstract public function foo(); } class test extends bar { public function foo() { return; } }
Output for 5.4.16
Parse error: syntax error, unexpected 'bar' (T_STRING), expecting class (T_CLASS) in /in/1qCNQ on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'bar' (T_STRING), expecting class (T_CLASS) in oQSYi on line 7
Process exited with code 255.
Output for 5.3.26
Parse error: syntax error, unexpected T_STRING, expecting T_CLASS in /in/1qCNQ on line 7
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected T_STRING, expecting T_CLASS in /in/oQSYi on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_STRING, expecting T_CLASS in oQSYi on line 7
Process exited with code 255.

preferences:
189.65 ms | 1399 KiB | 51 Q