3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = file_get_contents("http://adrenta.com/json/platform/getmap"); $data = json_decode($content, true); $result = array(); foreach($data['items'] as $key => $value) { $result[] = array('name' => $value['name'], 'street' => $value['street'], 'lat' => $value['lat'], 'lng' => $value['lng']); } echo json_encode($result);
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for adrenta.com failed: System error in /in/NjGol on line 3 Warning: file_get_contents(http://adrenta.com/json/platform/getmap): Failed to open stream: php_network_getaddresses: getaddrinfo for adrenta.com failed: System error in /in/NjGol on line 3 Warning: Trying to access array offset on value of type null in /in/NjGol on line 8 Warning: foreach() argument must be of type array|object, null given in /in/NjGol on line 8 []
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for adrenta.com failed: System error in /in/NjGol on line 3 Warning: file_get_contents(http://adrenta.com/json/platform/getmap): Failed to open stream: php_network_getaddresses: getaddrinfo for adrenta.com failed: System error in /in/NjGol on line 3 Warning: Trying to access array offset on null in /in/NjGol on line 8 Warning: foreach() argument must be of type array|object, null given in /in/NjGol on line 8 []

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