3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new DirectoryIterator(dirname(__FILE__)); 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 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
Branch analysis from position: 8
filename:       /in/octtu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $iterator, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DirectoryIterator'
          1        INIT_FCALL                                               'dirname'
          2        SEND_VAL                                                 '%2Fin%2Focttu'
          3        DO_ICALL                                         $3      
          4        SEND_VAR_NO_REF_EX                                       $3
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    3     7      > JMP                                                      ->21
    4     8    >   INIT_METHOD_CALL                                         !0, 'current'
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    5    11        INIT_METHOD_CALL                                         !0, 'key'
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      $8, '+%3D%3E+'
         14        INIT_METHOD_CALL                                         !1, 'getFilename'
         15        DO_FCALL                                      0  $10     
         16        CONCAT                                           ~11     ~9, $10
         17        CONCAT                                           ~12     ~11, '%0A'
         18        ECHO                                                     ~12
    6    19        INIT_METHOD_CALL                                         !0, 'next'
         20        DO_FCALL                                      0          
    3    21    >   INIT_METHOD_CALL                                         !0, 'valid'
         22        DO_FCALL                                      0  $14     
         23      > JMPNZ                                                    $14, ->8
    7    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.15 ms | 1395 KiB | 15 Q