3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://t0.gstatic.com/images?q=tbn:ANd9GcRJKXYLKY7mIU6i2xLRG7Az9Ze2QbpwiJ50IHaOWbB6K8wLSClwf0WAp5FQ1g"; echo "<pre>"; print_r(get_headers($url)); print_r(get_headers_curl($url)); function get_headers_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $r = curl_exec($ch); $r = explode("\n", $r); return $r; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
<pre> Warning: get_headers(): php_network_getaddresses: getaddrinfo for t0.gstatic.com failed: System error in /in/RXp0e on line 5 Warning: get_headers(http://t0.gstatic.com/images?q=tbn:ANd9GcRJKXYLKY7mIU6i2xLRG7Az9Ze2QbpwiJ50IHaOWbB6K8wLSClwf0WAp5FQ1g): Failed to open stream: php_network_getaddresses: getaddrinfo for t0.gstatic.com failed: System error in /in/RXp0e on line 5 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/RXp0e:10 Stack trace: #0 /in/RXp0e(6): get_headers_curl('http://t0.gstat...') #1 {main} thrown in /in/RXp0e on line 10
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:
35.02 ms | 402 KiB | 8 Q