3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = scandir('ftp://ftp.cetip.com.br/MediaCDI/', SCANDIR_SORT_DESCENDING); $newest_file = $files[0]; $fh = fopen($newest_file, 'r'); echo $fh;
Output for git.master, git.master_jit
Warning: scandir(): php_network_getaddresses: getaddrinfo for ftp.cetip.com.br failed: System error in /in/KrphB on line 2 Warning: scandir(): connect() failed: php_network_getaddresses: getaddrinfo for ftp.cetip.com.br failed: System error in /in/KrphB on line 2 Warning: scandir(ftp://ftp.cetip.com.br/MediaCDI/): Failed to open directory: operation failed in /in/KrphB on line 2 Warning: scandir(): (errno 97): Address family not supported by protocol in /in/KrphB on line 2 Warning: Trying to access array offset on value of type bool in /in/KrphB on line 3 Deprecated: fopen(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/KrphB on line 4 Fatal error: Uncaught ValueError: Path cannot be empty in /in/KrphB:4 Stack trace: #0 /in/KrphB(4): fopen('', 'r') #1 {main} thrown in /in/KrphB on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: scandir(): php_network_getaddresses: getaddrinfo for ftp.cetip.com.br failed: System error in /in/KrphB on line 2 Warning: scandir(): connect() failed: php_network_getaddresses: getaddrinfo for ftp.cetip.com.br failed: System error in /in/KrphB on line 2 Warning: scandir(ftp://ftp.cetip.com.br/MediaCDI/): Failed to open directory: operation failed in /in/KrphB on line 2 Warning: scandir(): (errno 97): Address family not supported by protocol in /in/KrphB on line 2 Warning: Trying to access array offset on false in /in/KrphB on line 3 Deprecated: fopen(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/KrphB on line 4 Fatal error: Uncaught ValueError: Path cannot be empty in /in/KrphB:4 Stack trace: #0 /in/KrphB(4): fopen('', 'r') #1 {main} thrown in /in/KrphB on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.76 ms | 402 KiB | 8 Q