3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myAddress = "15502 S Memorial Dr, Bixby, OK 74445"; $myKey = "Fmjtd%7Cluu82q6y2q%2Can%3Do5-94txl0"; function GetJsonFeed() { global $myAddress, $myKey; //$url = "http://www.mapquestapi.com/geocoding/v1/address?key=" . $myKey . "&callback=renderOptions&inFormat=kvp&outFormat=json&location=" . $myAddress . "&maxResults=1"; $url = @file_get_contents('http://open.mapquestapi.com/geocoding/v1/address?key=' . $myKey . '&location=' . $myAddress ); echo $url . "<br>"; $mapresponse = file_get_contents(rawurlencode($url), "r"); return json_decode($mapresponse); } $json = GetJsonFeed(); $jsonArr = json_decode($json); var_dump(json_decode($json, true)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
<br> Fatal error: Uncaught ValueError: Path cannot be empty in /in/8k71n:11 Stack trace: #0 /in/8k71n(11): file_get_contents('', 'r') #1 /in/8k71n(15): GetJsonFeed() #2 {main} thrown in /in/8k71n on line 11
Process exited with code 255.

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:
55.45 ms | 401 KiB | 8 Q