3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (new DirectoryIterator('.') as $fileInfo) { if ( $fileInfo->isWritable ) { $fileInfo->getFilename() . "<br>\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/G47WH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $fileInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DirectoryIterator'
          1        SEND_VAL_EX                                              '.'
          2        DO_FCALL                                      0          
          3      > FE_RESET_R                                       $3      $1, ->12
          4    > > FE_FETCH_R                                               $3, !0, ->12
    3     5    >   FETCH_OBJ_R                                      ~4      !0, 'isWritable'
          6      > JMPZ                                                     ~4, ->11
    4     7    >   INIT_METHOD_CALL                                         !0, 'getFilename'
          8        DO_FCALL                                      0  $5      
          9        CONCAT                                           ~6      $5, '%3Cbr%3E%0A'
         10        FREE                                                     ~6
    2    11    > > JMP                                                      ->4
         12    >   FE_FREE                                                  $3
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.14 ms | 1397 KiB | 13 Q