3v4l.org

run code in 300+ PHP versions simultaneously
<?php mkdir('/tmp/test' . mt_rand()); $iterator = FilesystemIterator('/tmp/test'); foreach ($iterator as $path => $file) var_dump($path);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/iMkHG
function name:  (null)
number of ops:  19
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        INIT_FCALL_BY_NAME                                       'FilesystemIterator'
          7        SEND_VAL_EX                                              '%2Ftmp%2Ftest'
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !0, $6
    7    10      > FE_RESET_R                                       $8      !0, ->17
         11    > > FE_FETCH_R                                       ~9      $8, !1, ->17
         12    >   ASSIGN                                                   !2, ~9
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    7    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $8
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.32 ms | 1395 KiB | 19 Q