3v4l.org

run code in 300+ PHP versions simultaneously
<?php // get all icons getSetByPrefix $icons = []; foreach (config('blade-icons.sets') as $key => $value) { $icons[$key] = []; $path = $value['path']; $prefix = $value['prefix']; $files = scandir($path); foreach ($files as $file) { if (strpos($file, '.svg') !== false) { $name = str_replace('.svg', '', $file); $icons[$key][] = $prefix . '-' . $name; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 39
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 39
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 37
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 37
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 36
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 36
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/b3s6j
function name:  (null)
number of ops:  41
compiled vars:  !0 = $icons, !1 = $value, !2 = $key, !3 = $path, !4 = $prefix, !5 = $files, !6 = $file, !7 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL_BY_NAME                                       'config'
          2        SEND_VAL_EX                                              'blade-icons.sets'
          3        DO_FCALL                                      0  $9      
          4      > FE_RESET_R                                       $10     $9, ->39
          5    > > FE_FETCH_R                                       ~11     $10, !1, ->39
          6    >   ASSIGN                                                   !2, ~11
    7     7        ASSIGN_DIM                                               !0, !2
          8        OP_DATA                                                  <array>
    8     9        FETCH_DIM_R                                      ~14     !1, 'path'
         10        ASSIGN                                                   !3, ~14
    9    11        FETCH_DIM_R                                      ~16     !1, 'prefix'
         12        ASSIGN                                                   !4, ~16
   10    13        INIT_FCALL                                               'scandir'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $18     
         16        ASSIGN                                                   !5, $18
   11    17      > FE_RESET_R                                       $20     !5, ->37
         18    > > FE_FETCH_R                                               $20, !6, ->37
   12    19    >   INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !6
         21        SEND_VAL                                                 '.svg'
         22        DO_ICALL                                         $21     
         23        TYPE_CHECK                                  1018          $21
         24      > JMPZ                                                     ~22, ->36
   13    25    >   INIT_FCALL                                               'str_replace'
         26        SEND_VAL                                                 '.svg'
         27        SEND_VAL                                                 ''
         28        SEND_VAR                                                 !6
         29        DO_ICALL                                         $23     
         30        ASSIGN                                                   !7, $23
   14    31        CONCAT                                           ~27     !4, '-'
         32        CONCAT                                           ~28     ~27, !7
         33        FETCH_DIM_W                                      $25     !0, !2
         34        ASSIGN_DIM                                               $25
         35        OP_DATA                                                  ~28
   11    36    > > JMP                                                      ->18
         37    >   FE_FREE                                                  $20
    6    38      > JMP                                                      ->5
         39    >   FE_FREE                                                  $10
   17    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.49 ms | 1400 KiB | 19 Q