3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo readfile("http://www.xhaus.com/headers"); //needs "Allow_url_include" enabled //OR echo include("http://www.xhaus.com/headers"); //needs "Allow_url_include" enabled //OR echo file_get_contents("http://www.xhaus.com/headers"); //OR echo stream_get_contents(fopen('http://www.xhaus.com/headers', "rb")); //you may use "r" instead of "rb" //needs "Allow_url_fopen" enabled ?>
Output for 8.3.0 - 8.3.6
Warning: readfile(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): Failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 8 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, false given in /in/pFLQh:8 Stack trace: #0 /in/pFLQh(8): stream_get_contents(false) #1 {main} thrown in /in/pFLQh on line 8
Process exited with code 255.
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Warning: readfile(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): Failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xhaus.com failed: System error in /in/pFLQh on line 8 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in /in/pFLQh:8 Stack trace: #0 /in/pFLQh(8): stream_get_contents(false) #1 {main} thrown in /in/pFLQh on line 8
Process exited with code 255.
Output for 8.0.13 - 8.0.30
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): Failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in /in/pFLQh:8 Stack trace: #0 /in/pFLQh(8): stream_get_contents(false) #1 {main} thrown in /in/pFLQh on line 8
Process exited with code 255.
Output for 8.0.0 - 8.0.12
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): Failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): Failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in /in/pFLQh:8 Stack trace: #0 /in/pFLQh(8): stream_get_contents(false) #1 {main} thrown in /in/pFLQh on line 8
Process exited with code 255.
Output for 7.3.0 - 7.3.13, 7.3.32 - 7.3.33, 7.4.0 - 7.4.1, 7.4.26 - 7.4.33
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Warning: stream_get_contents() expects parameter 1 to be resource, bool given in /in/pFLQh on line 8
Output for 7.3.16 - 7.3.31, 7.4.3 - 7.4.25
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Warning: stream_get_contents() expects parameter 1 to be resource, bool given in /in/pFLQh on line 8
Output for 7.2.29 - 7.2.33
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /in/pFLQh on line 8 Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in /in/pFLQh on line 8
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26
Warning: readfile(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: readfile(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 2 Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/pFLQh on line 4 Warning: include(http://www.xhaus.com/headers): failed to open stream: no suitable wrapper could be found in /in/pFLQh on line 4 Warning: include(): Failed opening 'http://www.xhaus.com/headers' for inclusion (include_path='.:') in /in/pFLQh on line 4 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: file_get_contents(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 6 Warning: fopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Warning: fopen(http://www.xhaus.com/headers): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/pFLQh on line 8 Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in /in/pFLQh on line 8

preferences:
250.74 ms | 405 KiB | 330 Q