3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = scandir('ftp://ftp.cetip.com.br/MediaCDI/', SCANDIR_SORT_DESCENDING); $newest_file = $files[0]; $fh = fopen($newest_file, 'r'); echo $fh;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KrphB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $files, !1 = $newest_file, !2 = $fh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'scandir'
          1        SEND_VAL                                                 'ftp%3A%2F%2Fftp.cetip.com.br%2FMediaCDI%2F'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        FETCH_DIM_R                                      ~5      !0, 0
          6        ASSIGN                                                   !1, ~5
    4     7        INIT_FCALL                                               'fopen'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'r'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    5    12        ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.37 ms | 1386 KiB | 17 Q