3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "Temperature"; header("Content-type: application/vnd.ms-excel"); header( "Content-disposition: filename=".$filename.".csv"); print "location, weather, obs_time, latitude, longitude, temp_f, wind_d, wind_deg, wind_mph"; print"\r\n"; $xml = simplexml_load_file('http://w1.weather.gov/xml/current_obs/KCHA.xml'); print $xml; ?>
Output for git.master, git.master_jit, rfc.property-hooks
location, weather, obs_time, latitude, longitude, temp_f, wind_d, wind_deg, wind_mph Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for w1.weather.gov failed: System error in /in/pn1jf on line 11 Warning: simplexml_load_file(http://w1.weather.gov/xml/current_obs/KCHA.xml): Failed to open stream: php_network_getaddresses: getaddrinfo for w1.weather.gov failed: System error in /in/pn1jf on line 11 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://w1.weather.gov/xml/current_obs/KCHA.xml" in /in/pn1jf on line 11

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