3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "resultsPage": { "results": { "event": [{ "id": 11129128, "type": "Concert", "uri": "http://www.songkick.com/concerts/11129128-wild-flag-at-fillmore?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "Wild Flag at The Fillmore (April 18, 2012)", "start": { "time": "20:00:00", "date": "2012-04-18", "datetime": "2012-04-18T20:00:00-0800" }, "performance": [{ "artist": { "uri": "http://www.songkick.com/artists/29835-wild-flag?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "Wild Flag", "id": 29835, "identifier": [] }, "displayName": "Wild Flag", "billingIndex": 1, "id": 21579303, "billing": "headline" }], "location": { "city": "San Francisco, CA, US", "lng": -122.4332937, "lat": 37.7842398 }, "venue": { "id": 6239, "displayName": "The Fillmore", "uri": "http://www.songkick.com/venues/6239-fillmore?utm_source=PARTNER_ID&utm_medium=partner", "lng": -122.4332937, "lat": 37.7842398, "metroArea": { "uri": "http://www.songkick.com/metro_areas/26330-us-sf-bay-area?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "SF Bay Area", "country": { "displayName": "US" }, "id": 26330, "state": { "displayName": "CA" } } }, "status": "ok", "popularity": 0.012763 }] }, "totalEntries": 24, "perPage": 50, "page": 1, "status": "ok" } }'; $data = json_decode($json, true); // Example: foreach ($data['resultsPage']['results']['event'] as $event) { echo "id: {$event['id']}\n"; echo "name: {$event['displayName']}\n"; } echo "\n\n\n"; var_dump($data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/E7ZA5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $json, !1 = $data, !2 = $event
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A%09%22resultsPage%22%3A+%7B%0A%09%09%22results%22%3A+%7B%0A%09%09%09%22event%22%3A+%5B%7B%0A%09%09%09%09%22id%22%3A+11129128%2C%0A%09%09%09%09%22type%22%3A+%22Concert%22%2C%0A%09%09%09%09%22uri%22%3A+%22http%3A%2F%2Fwww.songkick.com%2Fconcerts%2F11129128-wild-flag-at-fillmore%3Futm_source%3DPARTNER_ID%26utm_medium%3Dpartner%22%2C%0A%09%09%09%09%22displayName%22%3A+%22Wild+Flag+at+The+Fillmore+%28April+18%2C+2012%29%22%2C%0A%09%09%09%09%22start%22%3A+%7B%0A%09%09%09%09%09%22time%22%3A+%2220%3A00%3A00%22%2C%0A%09%09%09%09%09%22date%22%3A+%222012-04-18%22%2C%0A%09%09%09%09%09%22datetime%22%3A+%222012-04-18T20%3A00%3A00-0800%22%0A%09%09%09%09%7D%2C%0A%09%09%09%09%22performance%22%3A+%5B%7B%0A%09%09%09%09%09%22artist%22%3A+%7B%0A%09%09%09%09%09%09%22uri%22%3A+%22http%3A%2F%2Fwww.songkick.com%2Fartists%2F29835-wild-flag%3Futm_source%3DPARTNER_ID%26utm_medium%3Dpartner%22%2C%0A%09%09%09%09%09%09%22displayName%22%3A+%22Wild+Flag%22%2C%0A%09%09%09%09%09%09%22id%22%3A+29835%2C%0A%09%09%09%09%09%09%22identifier%22%3A+%5B%5D%0A%09%09%09%09%09%7D%2C%0A%09%09%09%09%09%22displayName%22%3A+%22Wild+Flag%22%2C%0A%09%09%09%09%09%22billingIndex%22%3A+1%2C%0A%09%09%09%09%09%22id%22%3A+21579303%2C%0A%09%09%09%09%09%22billing%22%3A+%22headline%22%0A%09%09%09%09%7D%5D%2C%0A%09%09%09%09%22location%22%3A+%7B%0A%09%09%09%09%09%22city%22%3A+%22San+Francisco%2C+CA%2C+US%22%2C%0A%09%09%09%09%09%22lng%22%3A+-122.4332937%2C%0A%09%09%09%09%09%22lat%22%3A+37.7842398%0A%09%09%09%09%7D%2C%0A%09%09%09%09%22venue%22%3A+%7B%0A%09%09%09%09%09%22id%22%3A+6239%2C%0A%09%09%09%09%09%22displayName%22%3A+%22The+Fillmore%22%2C%0A%09%09%09%09%09%22uri%22%3A+%22http%3A%2F%2Fwww.songkick.com%2Fvenues%2F6239-fillmore%3Futm_source%3DPARTNER_ID%26utm_medium%3Dpartner%22%2C%0A%09%09%09%09%09%22lng%22%3A+-122.4332937%2C%0A%09%09%09%09%09%22lat%22%3A+37.7842398%2C%0A%09%09%09%09%09%22metroArea%22%3A+%7B%0A%09%09%09%09%09%09%22uri%22%3A+%22http%3A%2F%2Fwww.songkick.com%2Fmetro_areas%2F26330-us-sf-bay-area%3Futm_source%3DPARTNER_ID%26utm_medium%3Dpartner%22%2C%0A%09%09%09%09%09%09%22displayName%22%3A+%22SF+Bay+Area%22%2C%0A%09%09%09%09%09%09%22country%22%3A+%7B%0A%09%09%09%09%09%09%09%22displayName%22%3A+%22US%22%0A%09%09%09%09%09%09%7D%2C%0A%09%09%09%09%09%09%22id%22%3A+26330%2C%0A%09%09%09%09%09%09%22state%22%3A+%7B%0A%09%09%09%09%09%09%09%22displayName%22%3A+%22CA%22%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%2C%0A%09%09%09%09%22status%22%3A+%22ok%22%2C%0A%09%09%09%09%22popularity%22%3A+0.012763%0A%09%09%09%7D%5D%0A%09%09%7D%2C%0A%09%09%22totalEntries%22%3A+24%2C%0A%09%09%22perPage%22%3A+50%2C%0A%09%09%22page%22%3A+1%2C%0A%09%09%22status%22%3A+%22ok%22%0A%09%7D%0A%7D'
   64     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   67     6        FETCH_DIM_R                                      ~6      !1, 'resultsPage'
          7        FETCH_DIM_R                                      ~7      ~6, 'results'
          8        FETCH_DIM_R                                      ~8      ~7, 'event'
          9      > FE_RESET_R                                       $9      ~8, ->22
         10    > > FE_FETCH_R                                               $9, !2, ->22
   68    11    >   ROPE_INIT                                     3  ~12     'id%3A+'
         12        FETCH_DIM_R                                      ~10     !2, 'id'
         13        ROPE_ADD                                      1  ~12     ~12, ~10
         14        ROPE_END                                      2  ~11     ~12, '%0A'
         15        ECHO                                                     ~11
   69    16        ROPE_INIT                                     3  ~16     'name%3A+'
         17        FETCH_DIM_R                                      ~14     !2, 'displayName'
         18        ROPE_ADD                                      1  ~16     ~16, ~14
         19        ROPE_END                                      2  ~15     ~16, '%0A'
         20        ECHO                                                     ~15
   67    21      > JMP                                                      ->10
         22    >   FE_FREE                                                  $9
   72    23        ECHO                                                     '%0A%0A%0A'
   75    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.7 ms | 1404 KiB | 17 Q