3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://ws.audioscrobbler.com'; $endpoint = '2.0'; $params = array( 'method' => 'user.getrecenttracks', 'user' => 'djekl', 'api_key' => 'ec23317a230c09ebf945ca738d24243e', 'format' => 'json', 'limit' => '200', ); $url = $url . '/' . $endpoint . '/?' . http_build_query($params); $json = file_get_contents($url); if ($json = json_decode($json)) { print_r($json); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for ws.audioscrobbler.com failed: System error in /in/kiYBI on line 15 Warning: file_get_contents(http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=djekl&api_key=ec23317a230c09ebf945ca738d24243e&format=json&limit=200): Failed to open stream: php_network_getaddresses: getaddrinfo for ws.audioscrobbler.com failed: System error in /in/kiYBI on line 15

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