3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "status": "success", "code": 200, "data": { "total": 5003, "max_score": null, "hits": [ { "_index": "latestlogs", "_type": "logs", "user_id": "rgertg4356ert", "_score": 13.127081, "_source": { "allcaller_id": "453454534", "source": "1", "company_id": "353454355", "caller_number_raw": "4353445345", "_cm": "", "caller_number": "+34534545", "country": "91", "state": "IN", "synced_time": 1554898407, "start_time": 1554898251, "_ms": 1554898251000, "seconds": 43851, "end_time": 1554898366, "duration": "00:01:55", "_drm": 1.92, "type": 1, "event": 1, "filename": "fgdfg.mp3", "fileurl": "google.com/mp3", "_ns": "0", "status": 1, "department_name": "During Office", "department_id": "r43rfdt43refd", "additional_parameters": [ { "ky": "unique_id", "vl": "d2.1554898249.1594961" }, { "ky": "is_starred", "vl": "0" }, { "ky": "view_type", "vl": "2" }, { "ky": "is_commented", "vl": "0" }, { "ky": "is_archived", "vl": "0" }, { "ky": "internal_flag", "vl": "1" } ], "comments": [ ], "log_details": [ { "received_by": [ { "user_id": "43535rfret", "name": "Peter", "email": "", "extension": "13", "contact_number_raw": "53534543", "contact_number": "+343243535" } ], "transfered_to": [ ], "status": "1", "start_time": 1554898284, "end_time": 1554898366, "duration": "00:01:22", "action": "received" } ], "_us": [ { "ky": "dfsdf", "vl": "received" } ], "_tc": [ { "ye": "dsfsdf", "yf": 82 } ], "_ri": "" } } ] } }'; $x = json_decode($json, true); foreach ($x['data']['hits'] as $key => $val) { $receivedBy = $val['_source']['log_details'][0]['received_by'][0]; var_dump($receivedBy); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/tImqD
function name:  (null)
number of ops:  23
compiled vars:  !0 = $json, !1 = $x, !2 = $val, !3 = $key, !4 = $receivedBy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A+++%0A++++++++%22status%22%3A+%22success%22%2C%0A+++%0A++++++++%22code%22%3A+200%2C%0A+++%0A++++++++%22data%22%3A+%7B%0A+++%0A++++++++++++%22total%22%3A+5003%2C%0A+++%0A++++++++++++%22max_score%22%3A+null%2C%0A+++%0A++++++++++++%22hits%22%3A+%5B%0A+++%0A++++++++++++++++%7B%0A+++%0A++++++++++++++++++++%22_index%22%3A+%22latestlogs%22%2C%0A+++%0A++++++++++++++++++++%22_type%22%3A+%22logs%22%2C%0A+++%0A++++++++++++++++++++%22user_id%22%3A+%22rgertg4356ert%22%2C%0A+++%0A++++++++++++++++++++%22_score%22%3A+13.127081%2C%0A+++%0A++++++++++++++++++++%22_source%22%3A+%7B%0A+++%0A++++++++++++++++++++++++%22allcaller_id%22%3A+%22453454534%22%2C%0A+++%0A++++++++++++++++++++++++%22source%22%3A+%221%22%2C%0A+++%0A++++++++++++++++++++++++%22company_id%22%3A+%22353454355%22%2C%0A+++%0A++++++++++++++++++++++++%22caller_number_raw%22%3A+%224353445345%22%2C%0A+++%0A++++++++++++++++++++++++%22_cm%22%3A+%22%22%2C%0A+++%0A++++++++++++++++++++++++%22caller_number%22%3A+%22%2B34534545%22%2C%0A+++%0A++++++++++++++++++++++++%22country%22%3A+%2291%22%2C%0A+++%0A++++++++++++++++++++++++%22state%22%3A+%22IN%22%2C%0A+++%0A++++++++++++++++++++++++%22synced_time%22%3A+1554898407%2C%0A+++%0A++++++++++++++++++++++++%22start_time%22%3A+1554898251%2C%0A+++%0A++++++++++++++++++++++++%22_ms%22%3A+1554898251000%2C%0A+++%0A++++++++++++++++++++++++%22seconds%22%3A+43851%2C%0A+++%0A++++++++++++++++++++++++%22end_time%22%3A+1554898366%2C%0A+++%0A++++++++++++++++++++++++%22duration%22%3A+%2200%3A01%3A55%22%2C%0A+++%0A++++++++++++++++++++++++%22_drm%22%3A+1.92%2C%0A+++%0A++++++++++++++++++++++++%22type%22%3A+1%2C%0A+++%0A++++++++++++++++++++++++%22event%22%3A+1%2C%0A+++%0A++++++++++++++++++++++++%22filename%22%3A+%22fgdfg.mp3%22%2C%0A+++%0A++++++++++++++++++++++++%22fileurl%22%3A+%22google.com%2Fmp3%22%2C%0A+++%0A++++++++++++++++++++++++%22_ns%22%3A+%220%22%2C%0A+++%0A++++++++++++++++++++++++%22status%22%3A+1%2C%0A+++%0A++++++++++++++++++++++++%22department_name%22%3A+%22During+Office%22%2C%0A+++%0A++++++++++++++++++++++++%22department_id%22%3A+%22r43rfdt43refd%22%2C%0A+++%0A++++++++++++++++++++++++%22additional_parameters%22%3A+%5B%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22unique_id%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%22d2.1554898249.1594961%22%0A+++%0A++++++++++++++++++++++++++++%7D%2C%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22is_starred%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%220%22%0A+++%0A++++++++++++++++++++++++++++%7D%2C%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22view_type%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%222%22%0A+++%0A++++++++++++++++++++++++++++%7D%2C%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22is_commented%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%220%22%0A+++%0A++++++++++++++++++++++++++++%7D%2C%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22is_archived%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%220%22%0A+++%0A++++++++++++++++++++++++++++%7D%2C%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22internal_flag%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%221%22%0A+++%0A++++++++++++++++++++++++++++%7D%0A+++%0A++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++%22comments%22%3A+%5B%0A+++%0A+++%0A+++%0A++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++%22log_details%22%3A+%5B%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22received_by%22%3A+%5B%0A+++%0A++++++++++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22user_id%22%3A+%2243535rfret%22%2C%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22name%22%3A+%22Peter%22%2C%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22email%22%3A+%22%22%2C%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22extension%22%3A+%2213%22%2C%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22contact_number_raw%22%3A+%2253534543%22%2C%0A+++%0A++++++++++++++++++++++++++++++++++++++++%22contact_number%22%3A+%22%2B343243535%22%0A+++%0A++++++++++++++++++++++++++++++++++++%7D%0A+++%0A++++++++++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++++++++++%22transfered_to%22%3A+%5B%0A+++%0A+++%0A+++%0A++++++++++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++++++++++%22status%22%3A+%221%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22start_time%22%3A+1554898284%2C%0A+++%0A++++++++++++++++++++++++++++++++%22end_time%22%3A+1554898366%2C%0A+++%0A++++++++++++++++++++++++++++++++%22duration%22%3A+%2200%3A01%3A22%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22action%22%3A+%22received%22%0A+++%0A++++++++++++++++++++++++++++%7D%0A+++%0A++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++%22_us%22%3A+%5B%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ky%22%3A+%22dfsdf%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22vl%22%3A+%22received%22%0A+++%0A++++++++++++++++++++++++++++%7D%0A+++%0A++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++%22_tc%22%3A+%5B%0A+++%0A++++++++++++++++++++++++++++%7B%0A+++%0A++++++++++++++++++++++++++++++++%22ye%22%3A+%22dsfsdf%22%2C%0A+++%0A++++++++++++++++++++++++++++++++%22yf%22%3A+82%0A+++%0A++++++++++++++++++++++++++++%7D%0A+++%0A++++++++++++++++++++++++%5D%2C%0A+++%0A++++++++++++++++++++++++%22_ri%22%3A+%22%22%0A+++%0A++++++++++++++++++++%7D%0A+++%0A++++++++++++++++%7D%0A+++%0A++++++++++++%5D%0A+++%0A++++++++%7D%0A+++%0A++++%7D'
  213     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
  215     6        FETCH_DIM_R                                      ~8      !1, 'data'
          7        FETCH_DIM_R                                      ~9      ~8, 'hits'
          8      > FE_RESET_R                                       $10     ~9, ->21
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->21
         10    >   ASSIGN                                                   !3, ~11
  216    11        FETCH_DIM_R                                      ~13     !2, '_source'
         12        FETCH_DIM_R                                      ~14     ~13, 'log_details'
         13        FETCH_DIM_R                                      ~15     ~14, 0
         14        FETCH_DIM_R                                      ~16     ~15, 'received_by'
         15        FETCH_DIM_R                                      ~17     ~16, 0
         16        ASSIGN                                                   !4, ~17
  217    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
  215    20      > JMP                                                      ->9
         21    >   FE_FREE                                                  $10
  218    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.57 ms | 1010 KiB | 15 Q