3v4l.org

run code in 500+ PHP versions simultaneously
<?php $startVal = new Command(); $middlewares = func1(...); if ($isAdmin) { $middlewares += func2(...); } if ($isTuesday) { $middlewares += fizbin(...); } $result = $middelwares($startVal);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 10
filename:       /in/tOlft
function name:  (null)
number of ops:  19
compiled vars:  !0 = $startVal, !1 = $middlewares, !2 = $isAdmin, !3 = $isTuesday, !4 = $result, !5 = $middelwares
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $6      'Command'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $6
    5     3        INIT_FCALL_BY_NAME                                           'func1'
          4        CALLABLE_CONVERT                                     ~9      
          5        ASSIGN                                                       !1, ~9
    7     6      > JMPZ                                                         !2, ->10
    8     7    >   INIT_FCALL_BY_NAME                                           'func2'
          8        CALLABLE_CONVERT                                     ~11     
          9        ASSIGN_OP                                         1          !1, ~11
   11    10    > > JMPZ                                                         !3, ->14
   12    11    >   INIT_FCALL_BY_NAME                                           'fizbin'
         12        CALLABLE_CONVERT                                     ~13     
         13        ASSIGN_OP                                         1          !1, ~13
   15    14    >   INIT_DYNAMIC_CALL                                            !5
         15        SEND_VAR_EX                                                  !0
         16        DO_FCALL                                          0  $15     
         17        ASSIGN                                                       !4, $15
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.05 ms | 1455 KiB | 13 Q