3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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.3.0rc3
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 hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined function ssh2_connect() in /in/kqLhA:10 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function ssh2_connect() in /in/kqLhA on line 10
Process exited with code 255.