3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "id": "474", "room_id": "14", "user_id": "20", "name": "121001.webm", "fname": "", "status": "0", "date_recorded": "October 17 2018 07:18:51", "size": "396135", "is_public": "0", "allow_download": "0", "privatekey": "", "duration": "0", "record_path": "https:example/url/test.mp4", "record_url": "https:example/url/test.mp4" } ]'; //this will return array with stdClass object $data = json_decode($json); echo $data;
based on TJNQ1
Output for 8.0.0
Warning: Array to string conversion in /in/5RaOc on line 25 Array
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12
Notice: Array to string conversion in /in/5RaOc on line 25 Array