3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.27 ms | 1388 KiB | 19 Q