3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = file_get_contents('http://api.geonames.org/findNearbyPlaceNameJSON?lat=51.9877644&lng=-1.47866&username=demo'); $data = json_decode($json,true); $Geonames = $data['geonames'][0]; echo "<pre>"; print_r($Geonames); exit;
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.geonames.org failed: System error in /in/8YBmu on line 3 Warning: file_get_contents(http://api.geonames.org/findNearbyPlaceNameJSON?lat=51.9877644&lng=-1.47866&username=demo): Failed to open stream: php_network_getaddresses: getaddrinfo for api.geonames.org failed: System error in /in/8YBmu on line 3 Warning: Trying to access array offset on value of type null in /in/8YBmu on line 7 Warning: Trying to access array offset on value of type null in /in/8YBmu on line 7 <pre>
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.geonames.org failed: System error in /in/8YBmu on line 3 Warning: file_get_contents(http://api.geonames.org/findNearbyPlaceNameJSON?lat=51.9877644&lng=-1.47866&username=demo): Failed to open stream: php_network_getaddresses: getaddrinfo for api.geonames.org failed: System error in /in/8YBmu on line 3 Warning: Trying to access array offset on null in /in/8YBmu on line 7 Warning: Trying to access array offset on null in /in/8YBmu on line 7 <pre>

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