3v4l.org

run code in 300+ PHP versions simultaneously
<?php new class { public function __construct() { function () implements self {}; } };
Output for 7.0.0 - 7.0.5
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/MMuD0 on line 4
Process exited with code 255.
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/MMuD0 on line 2
Process exited with code 255.

preferences:
208.91 ms | 1387 KiB | 68 Q