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[0]->record_url . PHP_EOL; //this will return array with associative array $data = json_decode($json, true); echo $data[0]['record_url'] . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TJNQ1
function name:  (null)
number of ops:  19
compiled vars:  !0 = $json, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%0A++%7B%0A++%22id%22%3A+%22474%22%2C%0A++%22room_id%22%3A+%2214%22%2C%0A++%22user_id%22%3A+%2220%22%2C%0A++%22name%22%3A+%22121001.webm%22%2C%0A++%22fname%22%3A+%22%22%2C%0A++%22status%22%3A+%220%22%2C%0A++%22date_recorded%22%3A+%22October+17+2018+07%3A18%3A51%22%2C%0A++%22size%22%3A+%22396135%22%2C%0A++%22is_public%22%3A+%220%22%2C%0A++%22allow_download%22%3A+%220%22%2C%0A++%22privatekey%22%3A+%22%22%2C%0A++%22duration%22%3A+%220%22%2C%0A++%22record_path%22%3A+%22https%3Aexample%2Furl%2Ftest.mp4%22%2C%0A++%22record_url%22%3A+%22https%3Aexample%2Furl%2Ftest.mp4%22%0A++%7D%0A%5D'
   24     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   25     5        FETCH_DIM_R                                      ~5      !1, 0
          6        FETCH_OBJ_R                                      ~6      ~5, 'record_url'
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
   29     9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
   30    14        FETCH_DIM_R                                      ~10     !1, 0
         15        FETCH_DIM_R                                      ~11     ~10, 'record_url'
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
   31    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1395 KiB | 15 Q