3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $path = $_SERVER['DOCUMENT_ROOT']; $dir = "."; echo '<table width="80%" border="1"> <tr> <td align="right">Path :</td> <td><a href="'.$path.'">Parent directory</a></td> <td>3</td> </tr>'; // Sort in ascending order - this is default $a = scandir($dir); foreach($a as $key => $value) { echo' <tr> <td>'.$value.'</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>'; } echo '</table>'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/XJaqu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $path, !1 = $dir, !2 = $a, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~5      '_SERVER'
          1        FETCH_DIM_R                                      ~6      ~5, 'DOCUMENT_ROOT'
          2        ASSIGN                                                   !0, ~6
    4     3        ASSIGN                                                   !1, '.'
    9     4        CONCAT                                           ~9      '%3Ctable+width%3D%2280%25%22+border%3D%221%22%3E%0A+%0A++%3Ctr%3E%0A++++%3Ctd+align%3D%22right%22%3EPath+%3A%3C%2Ftd%3E%0A++++%3Ctd%3E%3Ca+href%3D%22', !0
          5        CONCAT                                           ~10     ~9, '%22%3EParent+directory%3C%2Fa%3E%3C%2Ftd%3E%0A++++%3Ctd%3E3%3C%2Ftd%3E%0A++%3C%2Ftr%3E'
          6        ECHO                                                     ~10
   13     7        INIT_FCALL                                               'scandir'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $11     
         10        ASSIGN                                                   !2, $11
   14    11      > FE_RESET_R                                       $13     !2, ->18
         12    > > FE_FETCH_R                                       ~14     $13, !3, ->18
         13    >   ASSIGN                                                   !4, ~14
   17    14        CONCAT                                           ~16     '+%3Ctr%3E%0A++++%3Ctd%3E', !3
         15        CONCAT                                           ~17     ~16, '%3C%2Ftd%3E%0A++++%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A++++%3Ctd%3E%26nbsp%3B%3C%2Ftd%3E%0A++%3C%2Ftr%3E'
         16        ECHO                                                     ~17
   14    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $13
   22    19        ECHO                                                     '%3C%2Ftable%3E'
   25    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.04 ms | 1387 KiB | 15 Q