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'); ?>

preferences:
34.72 ms | 402 KiB | 5 Q