3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.41 ms | 1399 KiB | 17 Q