3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = "partnerupload.google.com"; $fileName = "coverfx_review_feed.xml"; $port = 19321; $user = "mc-sftp-10863943"; $password = "!**iLX7!??"; //$basePath = '/home/socialan/public_html'; //$basePath = 'D:/xampp/htdocs'; $resConnection = ssh2_connect($host, $port); if(ssh2_auth_password($resConnection, $user, $password)){ //Initialize SFTP subsystem $resSFTP = ssh2_sftp($resConnection); echo "connected to server"; // //Send/Download file here // }else{ echo "Unable to authenticate on server"; }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Call to undefined function ssh2_connect() in /in/kqLhA:10 Stack trace: #0 {main} thrown in /in/kqLhA on line 10
Process exited with code 255.
Output for 5.6.38
Fatal error: Call to undefined function ssh2_connect() in /in/kqLhA on line 10
Process exited with code 255.

preferences:
163.83 ms | 401 KiB | 217 Q