3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rScan($dir){ $list = array(); $items = preg_grep($this->iRegex,scandir($dir)); foreach($items as $item){ if(is_file("$dir/$item")){ $list[] = $item; continue; } $list[$item] = $rrScan("$dir/$item"); } return $list; } var_dump(rScan('/'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oSsv7
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'rscan'
          2        SEND_VAL                                                 '%2F'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function rscan:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 33
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 33
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/oSsv7
function name:  rScan
number of ops:  36
compiled vars:  !0 = $dir, !1 = $list, !2 = $items, !3 = $item, !4 = $rrScan
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'preg_grep'
          3        FETCH_THIS                                       $6      
          4        FETCH_OBJ_R                                      ~7      $6, 'iRegex'
          5        SEND_VAL                                                 ~7
          6        INIT_FCALL                                               'scandir'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
    5    12      > FE_RESET_R                                       $11     !2, ->33
         13    > > FE_FETCH_R                                               $11, !3, ->33
    6    14    >   INIT_FCALL                                               'is_file'
         15        ROPE_INIT                                     3  ~13     !0
         16        ROPE_ADD                                      1  ~13     ~13, '%2F'
         17        ROPE_END                                      2  ~12     ~13, !3
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                         $15     
         20      > JMPZ                                                     $15, ->24
    7    21    >   ASSIGN_DIM                                               !1
         22        OP_DATA                                                  !3
    8    23      > JMP                                                      ->13
   10    24    >   INIT_DYNAMIC_CALL                                        !4
         25        ROPE_INIT                                     3  ~19     !0
         26        ROPE_ADD                                      1  ~19     ~19, '%2F'
         27        ROPE_END                                      2  ~18     ~19, !3
         28        SEND_VAL_EX                                              ~18
         29        DO_FCALL                                      0  $21     
         30        ASSIGN_DIM                                               !1, !3
         31        OP_DATA                                                  $21
    5    32      > JMP                                                      ->13
         33    >   FE_FREE                                                  $11
   12    34      > RETURN                                                   !1
   13    35*     > RETURN                                                   null

End of function rscan

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1403 KiB | 22 Q