3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir('/tmp/test' . mt_rand()); $iterator = new RecursiveDirectoryIterator('/tmp/test', FilesystemIterator::SKIP_DOTS); foreach ($iterator as $path => $file) var_dump($path);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/BBLSH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $iterator, !1 = $file, !2 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mkdir'
          1        INIT_FCALL                                               'mt_rand'
          2        DO_ICALL                                         $3      
          3        CONCAT                                           ~4      '%2Ftmp%2Ftest', $3
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    5     6        NEW                                              $6      'RecursiveDirectoryIterator'
          7        SEND_VAL_EX                                              '%2Ftmp%2Ftest'
          8        SEND_VAL_EX                                              4096
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $6
    7    11      > FE_RESET_R                                       $9      !0, ->18
         12    > > FE_FETCH_R                                       ~10     $9, !1, ->18
         13    >   ASSIGN                                                   !2, ~10
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    7    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $9
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.03 ms | 1395 KiB | 19 Q