3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testURL = 'http://validator.w3.org/check?uri=http://forums.phpfreaks.com/topic/169441-get-headers-problems/'; $headers = get_headers($testURL, 1); var_dump $headers; var_dump($headers); ?>
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$headers' (T_VARIABLE) in /in/13lXJ on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/13lXJ on line 5
Process exited with code 255.