3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, '5.3.0', '>=') or die('SKIPPED'); $dir = new RecursiveDirectoryIterator('/tmp'); $dir->setMaxDepth(0); $recursive = new RecursiveIteratorIterator($dir); foreach ($recursive as $fileinfo) { printf("%s %s\n", $fileinfo, $recursive->isDot() ? "OMG A DOT!!" : ""); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 33
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 33
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/vrZPt
function name:  (null)
number of ops:  35
compiled vars:  !0 = $dir, !1 = $recursive, !2 = $fileinfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '5.3.0'
          3        SEND_VAL                                                 '%3E%3D'
          4        DO_ICALL                                         $3      
          5      > JMPNZ_EX                                         ~4      $3, ->8
          6    > > EXIT                                                     'SKIPPED'
          7*       BOOL                                             ~4      <true>
    3     8    >   NEW                                              $5      'RecursiveDirectoryIterator'
          9        SEND_VAL_EX                                              '%2Ftmp'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !0, $5
    4    12        INIT_METHOD_CALL                                         !0, 'setMaxDepth'
         13        SEND_VAL_EX                                              0
         14        DO_FCALL                                      0          
    6    15        NEW                                              $9      'RecursiveIteratorIterator'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !1, $9
    7    19      > FE_RESET_R                                       $12     !1, ->33
         20    > > FE_FETCH_R                                               $12, !2, ->33
    8    21    >   INIT_FCALL                                               'printf'
         22        SEND_VAL                                                 '%25s+%25s%0A'
         23        SEND_VAR                                                 !2
         24        INIT_METHOD_CALL                                         !1, 'isDot'
         25        DO_FCALL                                      0  $13     
         26      > JMPZ                                                     $13, ->29
         27    >   QM_ASSIGN                                        ~14     'OMG+A+DOT%21%21'
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~14     ''
         30    >   SEND_VAL                                                 ~14
         31        DO_ICALL                                                 
    7    32      > JMP                                                      ->20
         33    >   FE_FREE                                                  $12
    9    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1400 KiB | 17 Q