3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); foreach(new DirectoryIterator(dirname(__FILE__)) as $dir) { $arr[] = $dir->getFilename(); } var_dump($arr);
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/288EX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $3      'DirectoryIterator'
          2        INIT_FCALL                                               'dirname'
          3        SEND_VAL                                                 '%2Fin%2F288EX'
          4        DO_ICALL                                         $4      
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7      > FE_RESET_R                                       $6      $3, ->14
          8    > > FE_FETCH_R                                               $6, !1, ->14
    6     9    >   INIT_METHOD_CALL                                         !1, 'getFilename'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  $8
    4    13      > JMP                                                      ->8
         14    >   FE_FREE                                                  $6
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.98 ms | 1395 KiB | 17 Q