3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = "ftp.cetip.com.br/MediaCDI/"; $dh = opendir($dir); while (false !== ($file = readdir($dh))) { print '<a href="'.$dir.$file.'">'.$file.'</a><br>'; } /* $files = scandir('ftp://ftp.cetip.com.br/MediaCDI/', SCANDIR_SORT_DESCENDING); $newest_file = $files[0]; $fh = fopen($newest_file, 'r'); echo $fh; */

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 6
Branch analysis from position: 18
Branch analysis from position: 6
filename:       /in/Ktv5D
function name:  (null)
number of ops:  19
compiled vars:  !0 = $dir, !1 = $dh, !2 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ftp.cetip.com.br%2FMediaCDI%2F'
    3     1        INIT_FCALL                                               'opendir'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5      > JMP                                                      ->12
    5     6    >   CONCAT                                           ~6      '%3Ca+href%3D%22', !0
          7        CONCAT                                           ~7      ~6, !2
          8        CONCAT                                           ~8      ~7, '%22%3E'
          9        CONCAT                                           ~9      ~8, !2
         10        CONCAT                                           ~10     ~9, '%3C%2Fa%3E%3Cbr%3E'
         11        ECHO                                                     ~10
    4    12    >   INIT_FCALL                                               'readdir'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $11     
         15        ASSIGN                                           ~12     !2, $11
         16        TYPE_CHECK                                  1018          ~12
         17      > JMPNZ                                                    ~13, ->6
   13    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.42 ms | 1386 KiB | 17 Q