3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Response": { "MetaInfo": { "Timestamp": "2018-10-17T03:35:57.353+0000" }, "View": [ { "_type": "SearchResultsViewType", "ViewId": 0, "Result": [ { "Relevance": 1, "MatchLevel": "houseNumber", "MatchQuality": { "Country": 1, "State": 1, "City": 1, "Street": [ 1 ], "HouseNumber": 1 }, "MatchType": "pointAddress", "Location": { "LocationId": "NT_ySMW7zgrnTcVMzktS0t7FC_xkzM", "LocationType": "point", "DisplayPosition": { "Latitude": -23.46615, "Longitude": -46.42356 }, "NavigationPosition": [ { "Latitude": -23.4662, "Longitude": -46.42354 } ], "MapView": { "TopLeft": { "Latitude": -23.4650258, "Longitude": -46.4247855 }, "BottomRight": { "Latitude": -23.4672742, "Longitude": -46.4223345 } }, "Address": { "Label": "Rua Canapi, 193, Pimentas, Guarulhos - SP, 07272-060, Brasil", "Country": "BRA", "State": "SP", "City": "Guarulhos", "District": "Pimentas", "Street": "Rua Canapi", "HouseNumber": "193", "PostalCode": "07272-060", "AdditionalData": [ { "value": "Brasil", "key": "CountryName" }, { "value": "São Paulo", "key": "StateName" } ] } } } ] } ] } }'; $obj = json_decode($json); echo "Display Position Latitude: " , $obj->Response->View[0]->Result[0]->Location->DisplayPosition->Latitude; echo "\nDisplay Position Longitude: " , $obj->Response->View[0]->Result[0]->Location->DisplayPosition->Longitude; echo "\nNavigation Position Latitude: " , $obj->Response->View[0]->Result[0]->Location->NavigationPosition[0]->Latitude; echo "\nNavigation Position Longitude: " , $obj->Response->View[0]->Result[0]->Location->NavigationPosition[0]->Longitude; echo "\nMap View Top Left Latitude: " , $obj->Response->View[0]->Result[0]->Location->MapView->TopLeft->Latitude; echo "\nMap View Top Left Longitude: " , $obj->Response->View[0]->Result[0]->Location->MapView->TopLeft->Longitude; echo "\nMap View Bottom Right Latitude: " , $obj->Response->View[0]->Result[0]->Location->MapView->BottomRight->Latitude; echo "\nMap View Bottom Right Longitude: " , $obj->Response->View[0]->Result[0]->Location->MapView->BottomRight->Longitude;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Debha
function name:  (null)
number of ops:  92
compiled vars:  !0 = $json, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++%22Response%22%3A+%7B%0A++++%22MetaInfo%22%3A+%7B%0A++++++%22Timestamp%22%3A+%222018-10-17T03%3A35%3A57.353%2B0000%22%0A++++%7D%2C%0A++++%22View%22%3A+%5B%0A++++++%7B%0A++++++++%22_type%22%3A+%22SearchResultsViewType%22%2C%0A++++++++%22ViewId%22%3A+0%2C%0A++++++++%22Result%22%3A+%5B%0A++++++++++%7B%0A++++++++++++%22Relevance%22%3A+1%2C%0A++++++++++++%22MatchLevel%22%3A+%22houseNumber%22%2C%0A++++++++++++%22MatchQuality%22%3A+%7B%0A++++++++++++++%22Country%22%3A+1%2C%0A++++++++++++++%22State%22%3A+1%2C%0A++++++++++++++%22City%22%3A+1%2C%0A++++++++++++++%22Street%22%3A+%5B%0A++++++++++++++++1%0A++++++++++++++%5D%2C%0A++++++++++++++%22HouseNumber%22%3A+1%0A++++++++++++%7D%2C%0A++++++++++++%22MatchType%22%3A+%22pointAddress%22%2C%0A++++++++++++%22Location%22%3A+%7B%0A++++++++++++++%22LocationId%22%3A+%22NT_ySMW7zgrnTcVMzktS0t7FC_xkzM%22%2C%0A++++++++++++++%22LocationType%22%3A+%22point%22%2C%0A++++++++++++++%22DisplayPosition%22%3A+%7B%0A++++++++++++++++%22Latitude%22%3A+-23.46615%2C%0A++++++++++++++++%22Longitude%22%3A+-46.42356%0A++++++++++++++%7D%2C%0A++++++++++++++%22NavigationPosition%22%3A+%5B%0A++++++++++++++++%7B%0A++++++++++++++++++%22Latitude%22%3A+-23.4662%2C%0A++++++++++++++++++%22Longitude%22%3A+-46.42354%0A++++++++++++++++%7D%0A++++++++++++++%5D%2C%0A++++++++++++++%22MapView%22%3A+%7B%0A++++++++++++++++%22TopLeft%22%3A+%7B%0A++++++++++++++++++%22Latitude%22%3A+-23.4650258%2C%0A++++++++++++++++++%22Longitude%22%3A+-46.4247855%0A++++++++++++++++%7D%2C%0A++++++++++++++++%22BottomRight%22%3A+%7B%0A++++++++++++++++++%22Latitude%22%3A+-23.4672742%2C%0A++++++++++++++++++%22Longitude%22%3A+-46.4223345%0A++++++++++++++++%7D%0A++++++++++++++%7D%2C%0A++++++++++++++%22Address%22%3A+%7B%0A++++++++++++++++%22Label%22%3A+%22Rua+Canapi%2C+193%2C+Pimentas%2C+Guarulhos+-+SP%2C+07272-060%2C+Brasil%22%2C%0A++++++++++++++++%22Country%22%3A+%22BRA%22%2C%0A++++++++++++++++%22State%22%3A+%22SP%22%2C%0A++++++++++++++++%22City%22%3A+%22Guarulhos%22%2C%0A++++++++++++++++%22District%22%3A+%22Pimentas%22%2C%0A++++++++++++++++%22Street%22%3A+%22Rua+Canapi%22%2C%0A++++++++++++++++%22HouseNumber%22%3A+%22193%22%2C%0A++++++++++++++++%22PostalCode%22%3A+%2207272-060%22%2C%0A++++++++++++++++%22AdditionalData%22%3A+%5B%0A++++++++++++++++++%7B%0A++++++++++++++++++++%22value%22%3A+%22Brasil%22%2C%0A++++++++++++++++++++%22key%22%3A+%22CountryName%22%0A++++++++++++++++++%7D%2C%0A++++++++++++++++++%7B%0A++++++++++++++++++++%22value%22%3A+%22S%C3%A3o+Paulo%22%2C%0A++++++++++++++++++++%22key%22%3A+%22StateName%22%0A++++++++++++++++++%7D%0A++++++++++++++++%5D%0A++++++++++++++%7D%0A++++++++++++%7D%0A++++++++++%7D%0A++++++++%5D%0A++++++%7D%0A++++%5D%0A++%7D%0A%7D'
   76     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   78     5        ECHO                                                     'Display+Position+Latitude%3A+'
          6        FETCH_OBJ_R                                      ~5      !1, 'Response'
          7        FETCH_OBJ_R                                      ~6      ~5, 'View'
          8        FETCH_DIM_R                                      ~7      ~6, 0
          9        FETCH_OBJ_R                                      ~8      ~7, 'Result'
         10        FETCH_DIM_R                                      ~9      ~8, 0
         11        FETCH_OBJ_R                                      ~10     ~9, 'Location'
         12        FETCH_OBJ_R                                      ~11     ~10, 'DisplayPosition'
         13        FETCH_OBJ_R                                      ~12     ~11, 'Latitude'
         14        ECHO                                                     ~12
   79    15        ECHO                                                     '%0ADisplay+Position+Longitude%3A+'
         16        FETCH_OBJ_R                                      ~13     !1, 'Response'
         17        FETCH_OBJ_R                                      ~14     ~13, 'View'
         18        FETCH_DIM_R                                      ~15     ~14, 0
         19        FETCH_OBJ_R                                      ~16     ~15, 'Result'
         20        FETCH_DIM_R                                      ~17     ~16, 0
         21        FETCH_OBJ_R                                      ~18     ~17, 'Location'
         22        FETCH_OBJ_R                                      ~19     ~18, 'DisplayPosition'
         23        FETCH_OBJ_R                                      ~20     ~19, 'Longitude'
         24        ECHO                                                     ~20
   80    25        ECHO                                                     '%0ANavigation+Position+Latitude%3A+'
         26        FETCH_OBJ_R                                      ~21     !1, 'Response'
         27        FETCH_OBJ_R                                      ~22     ~21, 'View'
         28        FETCH_DIM_R                                      ~23     ~22, 0
         29        FETCH_OBJ_R                                      ~24     ~23, 'Result'
         30        FETCH_DIM_R                                      ~25     ~24, 0
         31        FETCH_OBJ_R                                      ~26     ~25, 'Location'
         32        FETCH_OBJ_R                                      ~27     ~26, 'NavigationPosition'
         33        FETCH_DIM_R                                      ~28     ~27, 0
         34        FETCH_OBJ_R                                      ~29     ~28, 'Latitude'
         35        ECHO                                                     ~29
   81    36        ECHO                                                     '%0ANavigation+Position+Longitude%3A+'
         37        FETCH_OBJ_R                                      ~30     !1, 'Response'
         38        FETCH_OBJ_R                                      ~31     ~30, 'View'
         39        FETCH_DIM_R                                      ~32     ~31, 0
         40        FETCH_OBJ_R                                      ~33     ~32, 'Result'
         41        FETCH_DIM_R                                      ~34     ~33, 0
         42        FETCH_OBJ_R                                      ~35     ~34, 'Location'
         43        FETCH_OBJ_R                                      ~36     ~35, 'NavigationPosition'
         44        FETCH_DIM_R                                      ~37     ~36, 0
         45        FETCH_OBJ_R                                      ~38     ~37, 'Longitude'
         46        ECHO                                                     ~38
   82    47        ECHO                                                     '%0AMap+View+Top+Left+Latitude%3A+'
         48        FETCH_OBJ_R                                      ~39     !1, 'Response'
         49        FETCH_OBJ_R                                      ~40     ~39, 'View'
         50        FETCH_DIM_R                                      ~41     ~40, 0
         51        FETCH_OBJ_R                                      ~42     ~41, 'Result'
         52        FETCH_DIM_R                                      ~43     ~42, 0
         53        FETCH_OBJ_R                                      ~44     ~43, 'Location'
         54        FETCH_OBJ_R                                      ~45     ~44, 'MapView'
         55        FETCH_OBJ_R                                      ~46     ~45, 'TopLeft'
         56        FETCH_OBJ_R                                      ~47     ~46, 'Latitude'
         57        ECHO                                                     ~47
   83    58        ECHO                                                     '%0AMap+View+Top+Left+Longitude%3A+'
         59        FETCH_OBJ_R                                      ~48     !1, 'Response'
         60        FETCH_OBJ_R                                      ~49     ~48, 'View'
         61        FETCH_DIM_R                                      ~50     ~49, 0
         62        FETCH_OBJ_R                                      ~51     ~50, 'Result'
         63        FETCH_DIM_R                                      ~52     ~51, 0
         64        FETCH_OBJ_R                                      ~53     ~52, 'Location'
         65        FETCH_OBJ_R                                      ~54     ~53, 'MapView'
         66        FETCH_OBJ_R                                      ~55     ~54, 'TopLeft'
         67        FETCH_OBJ_R                                      ~56     ~55, 'Longitude'
         68        ECHO                                                     ~56
   84    69        ECHO                                                     '%0AMap+View+Bottom+Right+Latitude%3A+'
         70        FETCH_OBJ_R                                      ~57     !1, 'Response'
         71        FETCH_OBJ_R                                      ~58     ~57, 'View'
         72        FETCH_DIM_R                                      ~59     ~58, 0
         73        FETCH_OBJ_R                                      ~60     ~59, 'Result'
         74        FETCH_DIM_R                                      ~61     ~60, 0
         75        FETCH_OBJ_R                                      ~62     ~61, 'Location'
         76        FETCH_OBJ_R                                      ~63     ~62, 'MapView'
         77        FETCH_OBJ_R                                      ~64     ~63, 'BottomRight'
         78        FETCH_OBJ_R                                      ~65     ~64, 'Latitude'
         79        ECHO                                                     ~65
   85    80        ECHO                                                     '%0AMap+View+Bottom+Right+Longitude%3A+'
         81        FETCH_OBJ_R                                      ~66     !1, 'Response'
         82        FETCH_OBJ_R                                      ~67     ~66, 'View'
         83        FETCH_DIM_R                                      ~68     ~67, 0
         84        FETCH_OBJ_R                                      ~69     ~68, 'Result'
         85        FETCH_DIM_R                                      ~70     ~69, 0
         86        FETCH_OBJ_R                                      ~71     ~70, 'Location'
         87        FETCH_OBJ_R                                      ~72     ~71, 'MapView'
         88        FETCH_OBJ_R                                      ~73     ~72, 'BottomRight'
         89        FETCH_OBJ_R                                      ~74     ~73, 'Longitude'
         90        ECHO                                                     ~74
   86    91      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.09 ms | 1009 KiB | 14 Q