3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conn = ftp_connect("ftp.filmha.org") or die("Cannot connect to FTP server"); $log = ftp_login($conn, "hamed@film-ha.com", "11205h"); $raw = ftp_nlist($conn, "/wp-jadval-serial"); ftp_close($conn); echo '<a href="/'.basename($file).'">'; foreach($raw AS $file){ if(substr($file, 0, 1) != '.' && strpos($file, '.')){ echo $file . "<br></a>"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 45
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 45
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 36, Position 2 = 41
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 44
Branch analysis from position: 41
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
filename:       /in/Fqsvv
function name:  (null)
number of ops:  47
compiled vars:  !0 = $conn, !1 = $log, !2 = $raw, !3 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'ftp_connect'
          1        SEND_VAL_EX                                              'ftp.filmha.org'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                           ~5      !0, $4
          4      > JMPNZ_EX                                         ~5      ~5, ->7
          5    > > EXIT                                                     'Cannot+connect+to+FTP+server'
          6*       BOOL                                             ~5      <true>
    3     7    >   INIT_FCALL_BY_NAME                                       'ftp_login'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              'hamed%40film-ha.com'
         10        SEND_VAL_EX                                              '11205h'
         11        DO_FCALL                                      0  $6      
         12        ASSIGN                                                   !1, $6
    4    13        INIT_FCALL_BY_NAME                                       'ftp_nlist'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAL_EX                                              '%2Fwp-jadval-serial'
         16        DO_FCALL                                      0  $8      
         17        ASSIGN                                                   !2, $8
    5    18        INIT_FCALL_BY_NAME                                       'ftp_close'
         19        SEND_VAR_EX                                              !0
         20        DO_FCALL                                      0          
    7    21        INIT_FCALL                                               'basename'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $11     
         24        CONCAT                                           ~12     '%3Ca+href%3D%22%2F', $11
         25        CONCAT                                           ~13     ~12, '%22%3E'
         26        ECHO                                                     ~13
    9    27      > FE_RESET_R                                       $14     !2, ->45
         28    > > FE_FETCH_R                                               $14, !3, ->45
   10    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !3
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 1
         33        DO_ICALL                                         $15     
         34        IS_NOT_EQUAL                                     ~16     $15, '.'
         35      > JMPZ_EX                                          ~16     ~16, ->41
         36    >   INIT_FCALL                                               'strpos'
         37        SEND_VAR                                                 !3
         38        SEND_VAL                                                 '.'
         39        DO_ICALL                                         $17     
         40        BOOL                                             ~16     $17
         41    > > JMPZ                                                     ~16, ->44
   11    42    >   CONCAT                                           ~18     !3, '%3Cbr%3E%3C%2Fa%3E'
         43        ECHO                                                     ~18
    9    44    > > JMP                                                      ->28
         45    >   FE_FREE                                                  $14
   14    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.86 ms | 1392 KiB | 19 Q