3v4l.org

run code in 300+ PHP versions simultaneously
<?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); ssh2_scp_send($connection, '/local/filename', '/remote/filename', 0644);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/drUpi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $connection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'ssh2_connect'
          1        SEND_VAL_EX                                              'shell.example.com'
          2        SEND_VAL_EX                                              22
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL_BY_NAME                                       'ssh2_auth_password'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              'username'
          8        SEND_VAL_EX                                              'password'
          9        DO_FCALL                                      0          
    5    10        INIT_FCALL_BY_NAME                                       'ssh2_scp_send'
         11        SEND_VAR_EX                                              !0
         12        SEND_VAL_EX                                              '%2Flocal%2Ffilename'
         13        SEND_VAL_EX                                              '%2Fremote%2Ffilename'
         14        SEND_VAL_EX                                              420
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.42 ms | 1393 KiB | 13 Q