3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Illuminate\Contracts\Http; interface Kernel { public function handle(\Symfony\Component\HttpFoundation\Request $request); } namespace Illuminate\Foundation\Http; class Kernel implements \Illuminate\Contracts\Http\Kernel { // This will not work because Illuminate's request is *more specific* // than the parent type (Symfony's request) public function handle(\Illuminate\Http\Request $request) {} } // -------------------------------------------------- namespace Symfony\Component\HttpFoundation; class Request { /* ... */ } namespace Illuminate\Http; class Request extends \Symfony\Component\HttpFoundation\Request { /* ... */ }
based on gc1tV
Output for 7.1.0 - 7.3.1
Fatal error: Declaration of Illuminate\Foundation\Http\Kernel::handle(Illuminate\Http\Request $request) must be compatible with Illuminate\Contracts\Http\Kernel::handle(Symfony\Component\HttpFoundation\Request $request) in /in/3qkji on line 10
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Declaration of Illuminate\Foundation\Http\Kernel::handle() must be compatible with that of Illuminate\Contracts\Http\Kernel::handle() in /in/3qkji:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Declaration of Illuminate\Foundation\Http\Kernel::handle() must be compatible with that of Illuminate\Contracts\Http\Kernel::handle() in /in/3qkji:10 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Declaration of Illuminate\Foundation\Http\Kernel::handle() must be compatible with Illuminate\Contracts\Http\Kernel::handle(Symfony\Component\HttpFoundation\Request $request) in /in/3qkji on line 11
Process exited with code 255.