3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ftp_server = "fraser.sfu.ca"; // set up basic connection $conn_id = ftp_connect($ftp_server ); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // get contents of the current directory $contents = ftp_nlist($conn_id, "."); // output $contents var_dump($contents); ftp_close($conn_id);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/hhPYY
function name:  (null)
number of ops:  23
compiled vars:  !0 = $ftp_server, !1 = $conn_id, !2 = $login_result, !3 = $ftp_user_name, !4 = $ftp_user_pass, !5 = $contents
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'fraser.sfu.ca'
   5     1        INIT_FCALL_BY_NAME                                       'ftp_connect'
         2        SEND_VAR_EX                                              !0
         3        DO_FCALL                                      0  $7      
         4        ASSIGN                                                   !1, $7
   8     5        INIT_FCALL_BY_NAME                                       'ftp_login'
         6        SEND_VAR_EX                                              !1
         7        SEND_VAR_EX                                              !3
         8        SEND_VAR_EX                                              !4
         9        DO_FCALL                                      0  $9      
        10        ASSIGN                                                   !2, $9
  11    11        INIT_FCALL_BY_NAME                                       'ftp_nlist'
        12        SEND_VAR_EX                                              !1
        13        SEND_VAL_EX                                              '.'
        14        DO_FCALL                                      0  $11     
        15        ASSIGN                                                   !5, $11
  14    16        INIT_FCALL                                               'var_dump'
        17        SEND_VAR                                                 !5
        18        DO_ICALL                                                 
  15    19        INIT_FCALL_BY_NAME                                       'ftp_close'
        20        SEND_VAR_EX                                              !1
        21        DO_FCALL                                      0          
        22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.1.0