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 git.master, git.master_jit
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 rfc.property-hooks
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.

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:
56.78 ms | 402 KiB | 8 Q