3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = ''; foreach ($_SERVER as $key => $value) { if (strpos($key, 'HTTP_') === 0 && $key != 'HTTP_HOST' && $key != 'HTTP_CONNECTION') { $key = strtolower(strtr(substr($key, 5), '_', '-')); $headers .= $key . ': ' . $value . "\r\n"; } } $opts = array( 'http'=>array( 'method'=>"GET", 'header'=> $headers, ) ); echo file_get_contents('http://phd.yandex.net/detect', false, stream_context_create($opts));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for phd.yandex.net failed: System error in /in/islVq on line 18 Warning: file_get_contents(http://phd.yandex.net/detect): Failed to open stream: php_network_getaddresses: getaddrinfo for phd.yandex.net failed: System error in /in/islVq on line 18

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