3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$f = new SplFileObject('/home/a.txt', "w+"); $iterator = new RecursiveDirectoryIterator('/usr'); while($iterator->valid()) { $file = $iterator->current(); echo $iterator->key() . " => " . $file->getFilename() . "\n"; $iterator->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 5
Branch analysis from position: 21
Branch analysis from position: 5
filename:       /in/EF6R3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $iterator, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'RecursiveDirectoryIterator'
          1        SEND_VAL_EX                                              '%2Fusr'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4      > JMP                                                      ->18
    5     5    >   INIT_METHOD_CALL                                         !0, 'current'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_METHOD_CALL                                         !0, 'key'
          9        DO_FCALL                                      0  $7      
         10        CONCAT                                           ~8      $7, '+%3D%3E+'
         11        INIT_METHOD_CALL                                         !1, 'getFilename'
         12        DO_FCALL                                      0  $9      
         13        CONCAT                                           ~10     ~8, $9
         14        CONCAT                                           ~11     ~10, '%0A'
         15        ECHO                                                     ~11
    7    16        INIT_METHOD_CALL                                         !0, 'next'
         17        DO_FCALL                                      0          
    4    18    >   INIT_METHOD_CALL                                         !0, 'valid'
         19        DO_FCALL                                      0  $13     
         20      > JMPNZ                                                    $13, ->5
    8    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.35 ms | 1385 KiB | 13 Q