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"}} '; $json = json_decode($str); $distance = $json->numRecordings->value; var_dump($distance);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Attempt to read property "numRecordings" on null in /in/ru7cU on line 6 Warning: Attempt to read property "value" on null in /in/ru7cU on line 6 NULL

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