3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.21 ms | 1395 KiB | 19 Q