3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(scandir('ftp://bf.am:8888/test')); ?>
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: System error in /in/EZV2B on line 2 Warning: scandir(): connect() failed: php_network_getaddresses: getaddrinfo failed: System error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: operation failed in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.2.7 - 7.0.14, 7.1.0
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: operation failed in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.2.6
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: Connection refused in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.2.5
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: Connection refused in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.2.4
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports stat in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.1.0 - 5.1.4, 5.2.0 - 5.2.3
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports  in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.1.5 - 5.1.6
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports ezmlm_hash in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.0.5
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports lcg_value in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.0.4
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports define_syslog_variables in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.0.3
Warning: scandir(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports syslog in /in/EZV2B on line 2 Warning: scandir(): (errno 111): Connection refused in /in/EZV2B on line 2 bool(false)
Output for 5.0.2
Warning: scandir(): php_network_getaddresses: gethostbyname failed in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2 Warning: scandir(ftp://bf.am:8888/test): failed to open dir: FTP server reports syslog in /in/EZV2B on line 2 Warning: scandir(): (errno 0): Success in /in/EZV2B on line 2 bool(false)
Output for 5.0.0 - 5.0.1
Warning: scandir(): php_network_getaddresses: gethostbyname failed in /in/EZV2B on line 2 Warning: scandir(): connect() failed: Unspecified error in /in/EZV2B on line 2
Process exited with code 139.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: scandir() in /in/EZV2B on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: scandir() in /in/EZV2B on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: scandir() in /in/EZV2B on line 2