3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ControllerBase { public function __construct(View $view){} } class Controller extends ControllerBase { public function response(Request $request): Response { //.. return new Response(..., $this->render($this->view, $data)); } }
Output for 7.1.0 - 7.1.15, 7.2.0 - 7.2.3
Parse error: syntax error, unexpected ',' in /in/am1u2 on line 13
Process exited with code 255.

preferences:
160.28 ms | 1406 KiB | 27 Q