3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = realpath('/proc'); $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST); foreach($objects as $name => $object){ echo "$name\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/lThIh
function name:  (null)
number of ops:  21
compiled vars:  !0 = $path, !1 = $objects, !2 = $object, !3 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'realpath'
          1        SEND_VAL                                                 '%2Fproc'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $6      'RecursiveIteratorIterator'
          5        NEW                                              $7      'RecursiveDirectoryIterator'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $7
          9        SEND_VAL_EX                                              1
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $6
    5    12      > FE_RESET_R                                       $11     !1, ->19
         13    > > FE_FETCH_R                                       ~12     $11, !2, ->19
         14    >   ASSIGN                                                   !3, ~12
    6    15        NOP                                                      
         16        FAST_CONCAT                                      ~14     !3, '%0A'
         17        ECHO                                                     ~14
    5    18      > JMP                                                      ->13
         19    >   FE_FREE                                                  $11
    7    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1395 KiB | 15 Q