3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $conn = ftp_connect("ftp.filmha.org") or die("Cannot connect to FTP server"); $log = ftp_login($conn, "hamed@film-ha.com", "11205h"); $raw = ftp_nlist($conn, "/wp-jadval-serial"); ftp_close($conn); echo '<a href="/'.basename($file).'">'; foreach($raw AS $file){ if(substr($file, 0, 1) != '.' && strpos($file, '.')){ echo $file . "<br></a>"; } } ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function ftp_connect() in /in/Fqsvv:2 Stack trace: #0 {main} thrown in /in/Fqsvv on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function ftp_connect() in /in/Fqsvv on line 2
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: System error in /in/Fqsvv on line 2 Cannot connect to FTP server