3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( RequestInterface $request, ResponseInterface $response, callable $next ); } interface ServerMiddlewareInterface extends MiddlewareInterface { /** * Process a request and return a response. * * Takes the incoming request and optionally modifies it before delegating * to the next handler to get a response. May modify the response before * ultimately returning it. * * @param RequestInterface $request * @param ResponseInterface $response * @param callable $next * * @return ResponseInterface */ public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ); } class AcmeMiddleware implements ServerMiddlewareInterface { public function __invoke( ServerRequestInterface $request, ResponseInterface $response, callable $next ) { return $response; } }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Could not check compatibility between ServerMiddlewareInterface::__invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) and MiddlewareInterface::__invoke(RequestInterface $request, ResponseInterface $response, callable $next), because class RequestInterface is not available in /in/fVPAV on line 40
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.46 ms | 401 KiB | 8 Q