3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.8 ms | 1394 KiB | 19 Q