3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = opendir(dirname(__FILE__)); while ($file = readdir($d)) echo $file."\n"; closedir($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/KFORD
function name:  (null)
number of ops:  19
compiled vars:  !0 = $d, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'opendir'
          1        INIT_FCALL                                               'dirname'
          2        SEND_VAL                                                 '%2Fin%2FKFORD'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    3     7      > JMP                                                      ->10
          8    >   CONCAT                                           ~5      !1, '%0A'
          9        ECHO                                                     ~5
         10    >   INIT_FCALL                                               'readdir'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                           ~7      !1, $6
         14      > JMPNZ                                                    ~7, ->8
    4    15    >   INIT_FCALL                                               'closedir'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.18 ms | 1395 KiB | 21 Q