3v4l.org

run code in 300+ PHP versions simultaneously
<?php $routesBundle = []; $routesBundle['main']['route'] = true; $routesBundle['main']['alt1'] = true; $routesBundle['main']['alt2'] = true; $routesBundle['rif']['route'] = true; $routesBundle['rif']['alt1'] = true; $routesBundle['rif']['alt2'] = true; foreach ($routesBundle as $bKey => $routes) { if ($bKey) { echo "\n" . $bKey . '<br>'; } foreach ($routes as $rKey => $route) { if ($rKey < count($routes) - 1 && $rKey < count($routes) - 1) { echo "\n" . $route . '<br>'; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 44
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 44
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 42
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 42
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 41
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 41
Branch analysis from position: 37
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 42
Branch analysis from position: 26
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
filename:       /in/tFvks
function name:  (null)
number of ops:  46
compiled vars:  !0 = $routesBundle, !1 = $routes, !2 = $bKey, !3 = $route, !4 = $rKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $6      !0, 'main'
          2        ASSIGN_DIM                                               $6, 'route'
          3        OP_DATA                                                  <true>
    5     4        FETCH_DIM_W                                      $8      !0, 'main'
          5        ASSIGN_DIM                                               $8, 'alt1'
          6        OP_DATA                                                  <true>
    6     7        FETCH_DIM_W                                      $10     !0, 'main'
          8        ASSIGN_DIM                                               $10, 'alt2'
          9        OP_DATA                                                  <true>
    7    10        FETCH_DIM_W                                      $12     !0, 'rif'
         11        ASSIGN_DIM                                               $12, 'route'
         12        OP_DATA                                                  <true>
    8    13        FETCH_DIM_W                                      $14     !0, 'rif'
         14        ASSIGN_DIM                                               $14, 'alt1'
         15        OP_DATA                                                  <true>
    9    16        FETCH_DIM_W                                      $16     !0, 'rif'
         17        ASSIGN_DIM                                               $16, 'alt2'
         18        OP_DATA                                                  <true>
   12    19      > FE_RESET_R                                       $18     !0, ->44
         20    > > FE_FETCH_R                                       ~19     $18, !1, ->44
         21    >   ASSIGN                                                   !2, ~19
   13    22      > JMPZ                                                     !2, ->26
   14    23    >   CONCAT                                           ~21     '%0A', !2
         24        CONCAT                                           ~22     ~21, '%3Cbr%3E'
         25        ECHO                                                     ~22
   16    26    > > FE_RESET_R                                       $23     !1, ->42
         27    > > FE_FETCH_R                                       ~24     $23, !3, ->42
         28    >   ASSIGN                                                   !4, ~24
   17    29        COUNT                                            ~26     !1
         30        SUB                                              ~27     ~26, 1
         31        IS_SMALLER                                       ~28     !4, ~27
         32      > JMPZ_EX                                          ~28     ~28, ->37
         33    >   COUNT                                            ~29     !1
         34        SUB                                              ~30     ~29, 1
         35        IS_SMALLER                                       ~31     !4, ~30
         36        BOOL                                             ~28     ~31
         37    > > JMPZ                                                     ~28, ->41
   18    38    >   CONCAT                                           ~32     '%0A', !3
         39        CONCAT                                           ~33     ~32, '%3Cbr%3E'
         40        ECHO                                                     ~33
   16    41    > > JMP                                                      ->27
         42    >   FE_FREE                                                  $23
   12    43      > JMP                                                      ->20
         44    >   FE_FREE                                                  $18
   22    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.73 ms | 1399 KiB | 13 Q