3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json_str = '{ "html_attributions" : [], "results" : [ { "formatted_address" : "Narayan Peth, Pune, Maharashtra 411030, India", "geometry" : { "location" : { "lat" : 18.515797, "lng" : 73.852335 } }, "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/shopping-71.png", "id" : "3a25975b3806df28aa79ac4a8d954c307be4aa57", "name" : "Aditya Medical", "place_id" : "ChIJJxwmOHDAwjsRjRDO4LnGJ-I", "reference" : "CmRSAAAA3E7ih55-2BZjRQcw_URQ2gwi8eWb5HU6hdfNUj_TqtDJ7TtASVMowcuWMkohNjp7F6UKuGsMuR-IlzZEt4YUJyzNxzWg-TYy6hyN8P5n2asAO6ztZeU3oHZdH7OBFFW_EhBe4cQbAU99oILcDmvv_gOhGhR7jzP0Z9-mDrncd5Gr9hOY7aOqRg", "types" : [ "pharmacy", "health", "store", "point_of_interest", "establishment" ] } ], "status" : "OK" }'; $obj = json_decode($json_str,true); //foreach (json_decode($json_str,true) as $obj){ print_r($obj['results'][0]['formatted_address']); //}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Esbic
function name:  (null)
number of ops:  13
compiled vars:  !0 = $json_str, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%0A+++%22html_attributions%22+%3A+%5B%5D%2C%0A+++%22results%22+%3A+%5B%0A++++++%7B%0A+++++++++%22formatted_address%22+%3A+%22Narayan+Peth%2C+Pune%2C+Maharashtra+411030%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+18.515797%2C%0A+++++++++++++++%22lng%22+%3A+73.852335%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22icon%22+%3A+%22https%3A%2F%2Fmaps.gstatic.com%2Fmapfiles%2Fplace_api%2Ficons%2Fshopping-71.png%22%2C%0A+++++++++%22id%22+%3A+%223a25975b3806df28aa79ac4a8d954c307be4aa57%22%2C%0A+++++++++%22name%22+%3A+%22Aditya+Medical%22%2C%0A+++++++++%22place_id%22+%3A+%22ChIJJxwmOHDAwjsRjRDO4LnGJ-I%22%2C%0A+++++++++%22reference%22+%3A+%22CmRSAAAA3E7ih55-2BZjRQcw_URQ2gwi8eWb5HU6hdfNUj_TqtDJ7TtASVMowcuWMkohNjp7F6UKuGsMuR-IlzZEt4YUJyzNxzWg-TYy6hyN8P5n2asAO6ztZeU3oHZdH7OBFFW_EhBe4cQbAU99oILcDmvv_gOhGhR7jzP0Z9-mDrncd5Gr9hOY7aOqRg%22%2C%0A+++++++++%22types%22+%3A+%5B+%22pharmacy%22%2C+%22health%22%2C+%22store%22%2C+%22point_of_interest%22%2C+%22establishment%22+%5D%0A++++++%7D%0A+++%5D%2C%0A+++%22status%22+%3A+%22OK%22%0A%7D'
   24     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
   26     6        INIT_FCALL                                                   'print_r'
          7        FETCH_DIM_R                                          ~5      !1, 'results'
          8        FETCH_DIM_R                                          ~6      ~5, 0
          9        FETCH_DIM_R                                          ~7      ~6, 'formatted_address'
         10        SEND_VAL                                                     ~7
         11        DO_ICALL                                                     
   27    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
217.74 ms | 2293 KiB | 15 Q