3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "results" : [ { "address_components" : [ { "long_name" : "P9/10", "short_name" : "P9/10", "types" : [ "premise" ] }, { "long_name" : "Pochanpur Colony", "short_name" : "Pochanpur Colony", "types" : [ "political", "sublocality", "sublocality_level_2" ] }, { "long_name" : "Dwarka", "short_name" : "Dwarka", "types" : [ "political", "sublocality", "sublocality_level_1" ] }, { "long_name" : "Delhi", "short_name" : "Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] }, { "long_name" : "110075", "short_name" : "110075", "types" : [ "postal_code" ] } ], "formatted_address" : "P9/10, Pochanpur Colony, Dwarka, Delhi, 110075, India", "geometry" : { "location" : { "lat" : 28.563945, "lng" : 77.04248679999999 }, "location_type" : "ROOFTOP", "viewport" : { "northeast" : { "lat" : 28.5652939802915, "lng" : 77.0438357802915 }, "southwest" : { "lat" : 28.5625960197085, "lng" : 77.0411378197085 } } }, "place_id" : "ChIJ0zkWBPcaDTkR8OpAXK17Qp8", "types" : [ "street_address" ] }, { "address_components" : [ { "long_name" : "Pocket 8", "short_name" : "Pocket 8", "types" : [ "establishment", "point_of_interest" ] }, { "long_name" : "Kala Ata Chakki", "short_name" : "Kala Ata Chakki", "types" : [ "route" ] }, { "long_name" : "Dhul Siras", "short_name" : "Dhul Siras", "types" : [ "political", "sublocality", "sublocality_level_2" ] }, { "long_name" : "Dwarka", "short_name" : "Dwarka", "types" : [ "political", "sublocality", "sublocality_level_1" ] }, { "long_name" : "Delhi", "short_name" : "Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] }, { "long_name" : "110075", "short_name" : "110075", "types" : [ "postal_code" ] } ], "formatted_address" : "Pocket 8, Dwarka Sector 23 B, Kala Ata Chakki, Dhul Siras, Dwarka, Delhi, 110075, India", "geometry" : { "location" : { "lat" : 28.5628438, "lng" : 77.0427552 }, "location_type" : "GEOMETRIC_CENTER", "viewport" : { "northeast" : { "lat" : 28.5641927802915, "lng" : 77.04410418029151 }, "southwest" : { "lat" : 28.5614948197085, "lng" : 77.04140621970849 } } }, "place_id" : "ChIJnYkGsPcaDTkRYBzk95MrbgM", "types" : [ "establishment", "point_of_interest" ] }, { "address_components" : [ { "long_name" : "Dhul Siras", "short_name" : "Dhul Siras", "types" : [ "political", "sublocality", "sublocality_level_2" ] }, { "long_name" : "Dwarka", "short_name" : "Dwarka", "types" : [ "political", "sublocality", "sublocality_level_1" ] }, { "long_name" : "Delhi", "short_name" : "Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Dhul Siras, Dwarka, Delhi, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.5667969, "lng" : 77.04649479999999 }, "southwest" : { "lat" : 28.551814, "lng" : 77.0272779 } }, "location" : { "lat" : 28.5641729, "lng" : 77.0413344 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.5667969, "lng" : 77.04649479999999 }, "southwest" : { "lat" : 28.561422, "lng" : 77.03926439999999 } } }, "place_id" : "ChIJhSDHK2EaDTkRETqqvXgJpaY", "types" : [ "political", "sublocality", "sublocality_level_2" ] }, { "address_components" : [ { "long_name" : "Dwarka", "short_name" : "Dwarka", "types" : [ "political", "sublocality", "sublocality_level_1" ] }, { "long_name" : "New Delhi", "short_name" : "New Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Dwarka, New Delhi, Delhi, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.6208451, "lng" : 77.0851753 }, "southwest" : { "lat" : 28.5257751, "lng" : 77.00929099999999 } }, "location" : { "lat" : 28.5921401, "lng" : 77.04604809999999 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.6208451, "lng" : 77.0851753 }, "southwest" : { "lat" : 28.5257751, "lng" : 77.00929099999999 } } }, "place_id" : "ChIJ4cTuMZwaDTkRmsiky3Y5STk", "types" : [ "political", "sublocality", "sublocality_level_1" ] }, { "address_components" : [ { "long_name" : "Delhi", "short_name" : "Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Delhi, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.88284, "lng" : 77.34488 }, "southwest" : { "lat" : 28.50197, "lng" : 76.8378199 } }, "location" : { "lat" : 28.6618976, "lng" : 77.2273958 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.88284, "lng" : 77.34488 }, "southwest" : { "lat" : 28.50197, "lng" : 76.8378199 } } }, "place_id" : "ChIJL_P_CXMEDTkRw0ZdG-0GVvw", "types" : [ "locality", "political" ] }, { "address_components" : [ { "long_name" : "110075", "short_name" : "110075", "types" : [ "postal_code" ] }, { "long_name" : "New Delhi", "short_name" : "New Delhi", "types" : [ "locality", "political" ] }, { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "New Delhi, Delhi 110075, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.6062045, "lng" : 77.07717749999999 }, "southwest" : { "lat" : 28.5547049, "lng" : 77.0103792 } }, "location" : { "lat" : 28.5899848, "lng" : 77.0443796 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.6062045, "lng" : 77.07717749999999 }, "southwest" : { "lat" : 28.5547049, "lng" : 77.0103792 } } }, "place_id" : "ChIJY690SeQaDTkRDlww_BqyZd8", "types" : [ "postal_code" ] }, { "address_components" : [ { "long_name" : "South West Delhi", "short_name" : "South West Delhi", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "South West Delhi, Delhi, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.67243, "lng" : 77.10914989999999 }, "southwest" : { "lat" : 28.50197, "lng" : 76.8378199 } }, "location" : { "lat" : 28.5928929, "lng" : 77.03461639999999 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.67243, "lng" : 77.10914989999999 }, "southwest" : { "lat" : 28.50197, "lng" : 76.8378199 } } }, "place_id" : "ChIJxbsO85oaDTkRGDJ4ocUr_Qw", "types" : [ "administrative_area_level_2", "political" ] }, { "address_components" : [ { "long_name" : "Delhi", "short_name" : "DL", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Delhi, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 28.881338, "lng" : 77.34845780000001 }, "southwest" : { "lat" : 28.412593, "lng" : 76.83806899999999 } }, "location" : { "lat" : 28.7040592, "lng" : 77.10249019999999 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 28.881338, "lng" : 77.34845780000001 }, "southwest" : { "lat" : 28.412593, "lng" : 76.83806899999999 } } }, "place_id" : "ChIJLbZ-NFv9DDkRQJY4FbcFcgM", "types" : [ "administrative_area_level_1", "political" ] }, { "address_components" : [ { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "India", "geometry" : { "bounds" : { "northeast" : { "lat" : 35.5087008, "lng" : 97.39535869999999 }, "southwest" : { "lat" : 6.4626999, "lng" : 68.1097 } }, "location" : { "lat" : 20.593684, "lng" : 78.96288 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 35.5087008, "lng" : 97.39498069999999 }, "southwest" : { "lat" : 6.7535159, "lng" : 68.16288519999999 } } }, "place_id" : "ChIJkbeSa_BfYzARphNChaFPjNc", "types" : [ "country", "political" ] } ], "status" : "OK" }'; function getAddress($elements){ $addr = []; foreach($elements as $e){ if(isset($e['types']) && in_array("street_number",$e['types'])) $addr['street_number'] = $e['long_name']; if(isset($e['types']) && in_array("street_number",$e['types'])) $addr['route'] = $e['long_name']; if(isset($e['types']) && in_array("administrative_area_level_2",$e['types'])) $addr['city'] = $e['long_name']; } return $addr; } $obj = json_decode($json, true); $c = $obj['results'][0]['address_components']; var_dump(getAddress($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DWelk
function name:  (null)
number of ops:  17
compiled vars:  !0 = $json, !1 = $obj, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A+++%22results%22+%3A+%5B%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22P9%2F10%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22P9%2F10%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22premise%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Pochanpur+Colony%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Pochanpur+Colony%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_2%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_1%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22postal_code%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22P9%2F10%2C+Pochanpur+Colony%2C+Dwarka%2C+Delhi%2C+110075%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.563945%2C%0A+++++++++++++++%22lng%22+%3A+77.04248679999999%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22ROOFTOP%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5652939802915%2C%0A++++++++++++++++++%22lng%22+%3A+77.0438357802915%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5625960197085%2C%0A++++++++++++++++++%22lng%22+%3A+77.0411378197085%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJ0zkWBPcaDTkR8OpAXK17Qp8%22%2C%0A+++++++++%22types%22+%3A+%5B+%22street_address%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Pocket+8%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Pocket+8%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22establishment%22%2C+%22point_of_interest%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Kala+Ata+Chakki%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Kala+Ata+Chakki%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22route%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dhul+Siras%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dhul+Siras%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_2%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_1%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22postal_code%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22Pocket+8%2C+Dwarka+Sector+23+B%2C+Kala+Ata+Chakki%2C+Dhul+Siras%2C+Dwarka%2C+Delhi%2C+110075%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.5628438%2C%0A+++++++++++++++%22lng%22+%3A+77.0427552%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22GEOMETRIC_CENTER%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5641927802915%2C%0A++++++++++++++++++%22lng%22+%3A+77.04410418029151%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5614948197085%2C%0A++++++++++++++++++%22lng%22+%3A+77.04140621970849%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJnYkGsPcaDTkRYBzk95MrbgM%22%2C%0A+++++++++%22types%22+%3A+%5B+%22establishment%22%2C+%22point_of_interest%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dhul+Siras%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dhul+Siras%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_2%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_1%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22Dhul+Siras%2C+Dwarka%2C+Delhi%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5667969%2C%0A++++++++++++++++++%22lng%22+%3A+77.04649479999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.551814%2C%0A++++++++++++++++++%22lng%22+%3A+77.0272779%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.5641729%2C%0A+++++++++++++++%22lng%22+%3A+77.0413344%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5667969%2C%0A++++++++++++++++++%22lng%22+%3A+77.04649479999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.561422%2C%0A++++++++++++++++++%22lng%22+%3A+77.03926439999999%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJhSDHK2EaDTkRETqqvXgJpaY%22%2C%0A+++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_2%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Dwarka%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_1%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22New+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22New+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22Dwarka%2C+New+Delhi%2C+Delhi%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.6208451%2C%0A++++++++++++++++++%22lng%22+%3A+77.0851753%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5257751%2C%0A++++++++++++++++++%22lng%22+%3A+77.00929099999999%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.5921401%2C%0A+++++++++++++++%22lng%22+%3A+77.04604809999999%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.6208451%2C%0A++++++++++++++++++%22lng%22+%3A+77.0851753%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5257751%2C%0A++++++++++++++++++%22lng%22+%3A+77.00929099999999%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJ4cTuMZwaDTkRmsiky3Y5STk%22%2C%0A+++++++++%22types%22+%3A+%5B+%22political%22%2C+%22sublocality%22%2C+%22sublocality_level_1%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22Delhi%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.88284%2C%0A++++++++++++++++++%22lng%22+%3A+77.34488%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.50197%2C%0A++++++++++++++++++%22lng%22+%3A+76.8378199%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.6618976%2C%0A+++++++++++++++%22lng%22+%3A+77.2273958%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.88284%2C%0A++++++++++++++++++%22lng%22+%3A+77.34488%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.50197%2C%0A++++++++++++++++++%22lng%22+%3A+76.8378199%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJL_P_CXMEDTkRw0ZdG-0GVvw%22%2C%0A+++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22110075%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22postal_code%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22New+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22New+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22locality%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22New+Delhi%2C+Delhi+110075%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.6062045%2C%0A++++++++++++++++++%22lng%22+%3A+77.07717749999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5547049%2C%0A++++++++++++++++++%22lng%22+%3A+77.0103792%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.5899848%2C%0A+++++++++++++++%22lng%22+%3A+77.0443796%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.6062045%2C%0A++++++++++++++++++%22lng%22+%3A+77.07717749999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.5547049%2C%0A++++++++++++++++++%22lng%22+%3A+77.0103792%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJY690SeQaDTkRDlww_BqyZd8%22%2C%0A+++++++++%22types%22+%3A+%5B+%22postal_code%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22South+West+Delhi%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22South+West+Delhi%2C+Delhi%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.67243%2C%0A++++++++++++++++++%22lng%22+%3A+77.10914989999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.50197%2C%0A++++++++++++++++++%22lng%22+%3A+76.8378199%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.5928929%2C%0A+++++++++++++++%22lng%22+%3A+77.03461639999999%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.67243%2C%0A++++++++++++++++++%22lng%22+%3A+77.10914989999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.50197%2C%0A++++++++++++++++++%22lng%22+%3A+76.8378199%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJxbsO85oaDTkRGDJ4ocUr_Qw%22%2C%0A+++++++++%22types%22+%3A+%5B+%22administrative_area_level_2%22%2C+%22political%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22Delhi%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22DL%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++++++++%7D%2C%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22Delhi%2C+India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.881338%2C%0A++++++++++++++++++%22lng%22+%3A+77.34845780000001%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.412593%2C%0A++++++++++++++++++%22lng%22+%3A+76.83806899999999%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+28.7040592%2C%0A+++++++++++++++%22lng%22+%3A+77.10249019999999%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.881338%2C%0A++++++++++++++++++%22lng%22+%3A+77.34845780000001%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+28.412593%2C%0A++++++++++++++++++%22lng%22+%3A+76.83806899999999%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJLbZ-NFv9DDkRQJY4FbcFcgM%22%2C%0A+++++++++%22types%22+%3A+%5B+%22administrative_area_level_1%22%2C+%22political%22+%5D%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22address_components%22+%3A+%5B%0A++++++++++++%7B%0A+++++++++++++++%22long_name%22+%3A+%22India%22%2C%0A+++++++++++++++%22short_name%22+%3A+%22IN%22%2C%0A+++++++++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++++++++%7D%0A+++++++++%5D%2C%0A+++++++++%22formatted_address%22+%3A+%22India%22%2C%0A+++++++++%22geometry%22+%3A+%7B%0A++++++++++++%22bounds%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+35.5087008%2C%0A++++++++++++++++++%22lng%22+%3A+97.39535869999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+6.4626999%2C%0A++++++++++++++++++%22lng%22+%3A+68.1097%0A+++++++++++++++%7D%0A++++++++++++%7D%2C%0A++++++++++++%22location%22+%3A+%7B%0A+++++++++++++++%22lat%22+%3A+20.593684%2C%0A+++++++++++++++%22lng%22+%3A+78.96288%0A++++++++++++%7D%2C%0A++++++++++++%22location_type%22+%3A+%22APPROXIMATE%22%2C%0A++++++++++++%22viewport%22+%3A+%7B%0A+++++++++++++++%22northeast%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+35.5087008%2C%0A++++++++++++++++++%22lng%22+%3A+97.39498069999999%0A+++++++++++++++%7D%2C%0A+++++++++++++++%22southwest%22+%3A+%7B%0A++++++++++++++++++%22lat%22+%3A+6.7535159%2C%0A++++++++++++++++++%22lng%22+%3A+68.16288519999999%0A+++++++++++++++%7D%0A++++++++++++%7D%0A+++++++++%7D%2C%0A+++++++++%22place_id%22+%3A+%22ChIJkbeSa_BfYzARphNChaFPjNc%22%2C%0A+++++++++%22types%22+%3A+%5B+%22country%22%2C+%22political%22+%5D%0A++++++%7D%0A+++%5D%2C%0A+++%22status%22+%3A+%22OK%22%0A%7D'
  517     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
  519     6        FETCH_DIM_R                                      ~6      !1, 'results'
          7        FETCH_DIM_R                                      ~7      ~6, 0
          8        FETCH_DIM_R                                      ~8      ~7, 'address_components'
          9        ASSIGN                                                   !2, ~8
  522    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'getaddress'
         12        SEND_VAR                                                 !2
         13        DO_FCALL                                      0  $10     
         14        SEND_VAR                                                 $10
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function getaddress:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 41
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 41
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 36
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 40
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 40
Branch analysis from position: 36
Branch analysis from position: 28
Branch analysis from position: 24
Branch analysis from position: 16
Branch analysis from position: 12
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/DWelk
function name:  getAddress
number of ops:  44
compiled vars:  !0 = $elements, !1 = $addr, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  506     0  E >   RECV                                             !0      
  507     1        ASSIGN                                                   !1, <array>
  508     2      > FE_RESET_R                                       $4      !0, ->41
          3    > > FE_FETCH_R                                               $4, !2, ->41
  509     4    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~5      !2, 'types'
          5      > JMPZ_EX                                          ~5      ~5, ->12
          6    >   INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 'street_number'
          8        FETCH_DIM_R                                      ~6      !2, 'types'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        BOOL                                             ~5      $7
         12    > > JMPZ                                                     ~5, ->16
         13    >   FETCH_DIM_R                                      ~9      !2, 'long_name'
         14        ASSIGN_DIM                                               !1, 'street_number'
         15        OP_DATA                                                  ~9
  510    16    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !2, 'types'
         17      > JMPZ_EX                                          ~10     ~10, ->24
         18    >   INIT_FCALL                                               'in_array'
         19        SEND_VAL                                                 'street_number'
         20        FETCH_DIM_R                                      ~11     !2, 'types'
         21        SEND_VAL                                                 ~11
         22        DO_ICALL                                         $12     
         23        BOOL                                             ~10     $12
         24    > > JMPZ                                                     ~10, ->28
         25    >   FETCH_DIM_R                                      ~14     !2, 'long_name'
         26        ASSIGN_DIM                                               !1, 'route'
         27        OP_DATA                                                  ~14
  511    28    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~15     !2, 'types'
         29      > JMPZ_EX                                          ~15     ~15, ->36
         30    >   INIT_FCALL                                               'in_array'
         31        SEND_VAL                                                 'administrative_area_level_2'
         32        FETCH_DIM_R                                      ~16     !2, 'types'
         33        SEND_VAL                                                 ~16
         34        DO_ICALL                                         $17     
         35        BOOL                                             ~15     $17
         36    > > JMPZ                                                     ~15, ->40
         37    >   FETCH_DIM_R                                      ~19     !2, 'long_name'
         38        ASSIGN_DIM                                               !1, 'city'
         39        OP_DATA                                                  ~19
  508    40    > > JMP                                                      ->3
         41    >   FE_FREE                                                  $4
  513    42      > RETURN                                                   !1
  514    43*     > RETURN                                                   null

End of function getaddress

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.09 ms | 1427 KiB | 20 Q