3v4l.org

run code in 300+ PHP versions simultaneously
<?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; ?>
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '$headers' (T_VARIABLE) in /in/0f80D 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/0f80D on line 5
Process exited with code 255.

preferences:
171.86 ms | 1395 KiB | 55 Q