3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://weather.livedoor.com/forecast/webservice/json/v1?city=016010'; $json = file_get_contents( $url, true ); header( 'Content-type: application/json' ); echo json_encode( $json );
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for weather.livedoor.com failed: System error in /in/bCMGI on line 3 Warning: file_get_contents(http://weather.livedoor.com/forecast/webservice/json/v1?city=016010): Failed to open stream: php_network_getaddresses: getaddrinfo for weather.livedoor.com failed: System error in /in/bCMGI on line 3 Warning: Cannot modify header information - headers already sent by (output started at /in/bCMGI:3) in /in/bCMGI on line 4 false

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