3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ftp_server = 'ftp.cetip.com.br/MediaCDI/'; $connect = ftp_connect($ftp_server); $login_result = ftp_login($connect, '', ''); $contents = ftp_nlist($connect, "."); print_r($contents);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
Fatal error: Uncaught Error: Call to undefined function ftp_connect() in /in/drunp:4 Stack trace: #0 {main} thrown in /in/drunp on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Fatal error: Call to undefined function ftp_connect() in /in/drunp on line 4
Process exited with code 255.
Output for 4.3.3 - 4.3.4, 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.3 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: System error in /in/drunp on line 4 Warning: ftp_login() expects parameter 1 to be resource, boolean given in /in/drunp on line 6 Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /in/drunp on line 8
Output for 4.3.5 - 4.3.9, 5.0.0 - 5.0.2
Warning: ftp_connect(): php_network_getaddresses: gethostbyname failed in /in/drunp on line 4 Warning: ftp_login() expects parameter 1 to be resource, boolean given in /in/drunp on line 6 Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /in/drunp on line 8
Output for 4.3.2
Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: System error (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure) in /in/drunp on line 4 Warning: ftp_login() expects parameter 1 to be resource, boolean given in /in/drunp on line 6 Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /in/drunp on line 8
Output for 4.3.0 - 4.3.1
Warning: ftp_connect() [http://www.php.net/function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: System error in /in/drunp on line 4 Warning: ftp_login() expects parameter 1 to be resource, boolean given in /in/drunp on line 6 Warning: ftp_nlist() expects parameter 1 to be resource, boolean given in /in/drunp on line 8

preferences:
245.19 ms | 402 KiB | 319 Q