3v4l.org

run code in 300+ PHP versions simultaneously
<?php $surl = 'http://bit.ly/IrKd8Q'; stream_context_set_default(array('http' => array('method' => 'HEAD'))); $header = get_headers($surl , 1); $result = $header['Location']; echo htmlspecialchars($result , ENT_QUOTES,'UTF-8'); ?>
Output for git.master, git.master_jit
Warning: get_headers(): php_network_getaddresses: getaddrinfo for bit.ly failed: System error in /in/Cam3p on line 7 Warning: get_headers(http://bit.ly/IrKd8Q): Failed to open stream: php_network_getaddresses: getaddrinfo for bit.ly failed: System error in /in/Cam3p on line 7 Warning: Trying to access array offset on value of type bool in /in/Cam3p on line 9 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Cam3p on line 11
Output for rfc.property-hooks
Warning: get_headers(): php_network_getaddresses: getaddrinfo for bit.ly failed: System error in /in/Cam3p on line 7 Warning: get_headers(http://bit.ly/IrKd8Q): Failed to open stream: php_network_getaddresses: getaddrinfo for bit.ly failed: System error in /in/Cam3p on line 7 Warning: Trying to access array offset on false in /in/Cam3p on line 9 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/Cam3p on line 11

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