3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doit($start) { foreach (glob($start . '/*') as $filename) { if (is_dir($filename)) { doit($filename); } else { echo "$filename size " . filesize($filename) . "\n"; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vqn9J
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Function doit:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/vqn9J
function name:  doit
number of ops:  26
compiled vars:  !0 = $start, !1 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'glob'
          2        CONCAT                                           ~2      !0, '%2F%2A'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5      > FE_RESET_R                                       $4      $3, ->24
          6    > > FE_FETCH_R                                               $4, !1, ->24
    4     7    >   INIT_FCALL                                               'is_dir'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->15
    5    11    >   INIT_FCALL_BY_NAME                                       'doit'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
         14      > JMP                                                      ->23
    7    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~7      !1, '+size+'
         17        INIT_FCALL                                               'filesize'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        CONCAT                                           ~9      ~7, $8
         21        CONCAT                                           ~10     ~9, '%0A'
         22        ECHO                                                     ~10
    3    23    > > JMP                                                      ->6
         24    >   FE_FREE                                                  $4
   10    25      > RETURN                                                   null

End of function doit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1396 KiB | 19 Q