3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.45 ms | 1395 KiB | 19 Q