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"}} '; $audiostring = file_get_contents($audiourl); $json_a = json_decode($audiostring, true); echo $json_a['numRecordings'];
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $audiourl in /in/6Fv6H on line 5 Deprecated: file_get_contents(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/6Fv6H on line 5 Fatal error: Uncaught ValueError: Path cannot be empty in /in/6Fv6H:5 Stack trace: #0 /in/6Fv6H(5): file_get_contents('') #1 {main} thrown in /in/6Fv6H on line 5
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:
43.88 ms | 401 KiB | 8 Q