3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = function ($request) { //middleware1 $request++; $response = (function ($request) {//middleware2 $request++; $response = (function ($request) {//middleware3 $request++; $response = (function ($request) {//middleware4 $request++; $response = (function ($request) {//middleware5 return $request; })($request); $response--; return $response; })($request); $response--; return $response; })($request); $response--; return $response; })($request); $response--; return $response; }; echo $stack(120), "\n"; echo $stack(55), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  (null)
number of ops:  13
compiled vars:  !0 = $stack
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          1        ASSIGN                                                   !0, ~1
   35     2        INIT_DYNAMIC_CALL                                        !0
          3        SEND_VAL_EX                                              120
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
          6        ECHO                                                     '%0A'
   36     7        INIT_DYNAMIC_CALL                                        !0
          8        SEND_VAL_EX                                              55
          9        DO_FCALL                                      0  $4      
         10        ECHO                                                     $4
         11        ECHO                                                     '%0A'
         12      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $request, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        PRE_INC                                                  !0
    6     2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   29     3        INIT_DYNAMIC_CALL                                        ~3
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
    6     6        ASSIGN                                                   !1, $4
   31     7        PRE_DEC                                                  !1
   32     8      > RETURN                                                   !1
   33     9*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $request, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        PRE_INC                                                  !0
    9     2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   25     3        INIT_DYNAMIC_CALL                                        ~3
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
    9     6        ASSIGN                                                   !1, $4
   27     7        PRE_DEC                                                  !1
   28     8      > RETURN                                                   !1
   29     9*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $request, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        PRE_INC                                                  !0
   12     2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   21     3        INIT_DYNAMIC_CALL                                        ~3
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
   12     6        ASSIGN                                                   !1, $4
   23     7        PRE_DEC                                                  !1
   24     8      > RETURN                                                   !1
   25     9*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $request, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        PRE_INC                                                  !0
   15     2        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
   17     3        INIT_DYNAMIC_CALL                                        ~3
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
   15     6        ASSIGN                                                   !1, $4
   19     7        PRE_DEC                                                  !1
   20     8      > RETURN                                                   !1
   21     9*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZWnJ3
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1      > RETURN                                                   !0
   17     2*     > RETURN                                                   null

End of Dynamic Function 0

End of Dynamic Function 0

End of Dynamic Function 0

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.23 ms | 1000 KiB | 13 Q