3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"numRecordings":"87","numSpecies":"1","page":1,"numPages":1,"recordings":[{"id":"176356","gen":"Picoides","sp":"pubescens","ssp":"","en":"Downy Woodpecker","rec":"Jorge de Leon Cardozo","cnt":"United States","loc":"STORRS MANSFIELD, Tolland, Connecticut","lat":"41.8349","lng":"-72.1974","type":"drumming","file":"http:\/\/www.xeno-canto.org\/176356\/download","lic":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/","url":"http:\/\/www.xeno-canto.org\/176356"}} '; $audiourl = "http://www.xeno-canto.org/api/2/recordings?query=Picoides%20pubescens&page=1"; $audiostring = file_get_contents($audiourl); $json_a = json_decode($audiostring, true); echo $json_a['numRecordings'];
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.xeno-canto.org failed: System error in /in/N2Fk3 on line 6 Warning: file_get_contents(http://www.xeno-canto.org/api/2/recordings?query=Picoides%20pubescens&page=1): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xeno-canto.org failed: System error in /in/N2Fk3 on line 6 Warning: Trying to access array offset on value of type null in /in/N2Fk3 on line 9
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.xeno-canto.org failed: System error in /in/N2Fk3 on line 6 Warning: file_get_contents(http://www.xeno-canto.org/api/2/recordings?query=Picoides%20pubescens&page=1): Failed to open stream: php_network_getaddresses: getaddrinfo for www.xeno-canto.org failed: System error in /in/N2Fk3 on line 6 Warning: Trying to access array offset on null in /in/N2Fk3 on line 9

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