3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use React\Promise\PromiseInterface; interface MiddlewareInterface { /** * @param RequestInterface $request * @param callable $next * @return PromiseInterface<ResponseInterface>|ResponseInterface */ public function __invoke(RequestInterface $request, callable $next); } final class BrowserMiddlewareStub implements MiddlewareInterface { /** @var ResponseInterface */ private $response; public function __construct(ResponseInterface $response) { $this->response = $response; } /** * @param RequestInterface $request * @param callable $next * @return PromiseInterface<ResponseInterface>|ResponseInterface */ public function __invoke(RequestInterface $request, callable $next) { return $this->response; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7P2V
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   DECLARE_CLASS                                            'browsermiddlewarestub'
   36     1      > RETURN                                                   1

Class MiddlewareInterface:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7P2V
function name:  __invoke
number of ops:  3
compiled vars:  !0 = $request, !1 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function __invoke

End of class MiddlewareInterface.

Class BrowserMiddlewareStub:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7P2V
function name:  __construct
number of ops:  4
compiled vars:  !0 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        ASSIGN_OBJ                                               'response'
          2        OP_DATA                                                  !0
   25     3      > RETURN                                                   null

End of function __construct

Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7P2V
function name:  __invoke
number of ops:  5
compiled vars:  !0 = $request, !1 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   34     2        FETCH_OBJ_R                                      ~2      'response'
          3      > RETURN                                                   ~2
   35     4*     > RETURN                                                   null

End of function __invoke

End of class BrowserMiddlewareStub.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.53 ms | 1433 KiB | 13 Q