3v4l.org

run code in 300+ PHP versions simultaneously
<?php $LatLngList = ""; $markers = ""; $contact_informatie = ""; $contacts["berlaar"]["x"] = "51.08475"; $contacts["berlaar"]["y"] = "4.65756"; $contacts["berlaar"]["straat"] = "Aarschotsebaan 140"; $contacts["berlaar"]["gemeente"] = "2590 Berlaar"; $contacts["berlaar"]["tel"] = "015 75 51 00"; $contacts["berlaar"]["tekst"] = "Openingsuren: Zomerperiode 1/3 tot 15/10"; $contacts["berlaar"]["openingsuren"]["ma"] = "10-17u"; $contacts["berlaar"]["openingsuren"]["di"] = "sluitingsdag"; $contacts["berlaar"]["openingsuren"]["woe"] = "13-18u"; $contacts["berlaar"]["openingsuren"]["do"] = "10-17u"; $contacts["berlaar"]["openingsuren"]["vrij"] = "10-17u"; $contacts["berlaar"]["openingsuren"]["zat"] = "10-16u"; $contacts["genk"]["x"] = "50.97269"; $contacts["genk"]["y"] = "5.51706"; $contacts["genk"]["straat"] = "Weg naar As 168"; $contacts["genk"]["gemeente"] = "3600 Genk"; $contacts["genk"]["tel"] = "089 35 68 30"; $contacts["genk"]["tekst"] = "Openingsuren: Zomerperiode 1/3 tot 15/10"; $contacts["genk"]["openingsuren"]["ma"] = "sluitingsdag"; $contacts["genk"]["openingsuren"]["di"] = "10-18u"; $contacts["genk"]["openingsuren"]["woe"] = "13-18u"; $contacts["genk"]["openingsuren"]["do"] = "13-18u"; $contacts["genk"]["openingsuren"]["vrij"] = "10-18u"; $contacts["genk"]["openingsuren"]["zat"] = "10-16u"; $contacts["weelde"]["x"] = "51.41312"; $contacts["weelde"]["y"] = "5.01571"; $contacts["weelde"]["straat"] = "Weeldestraat 102"; $contacts["weelde"]["gemeente"] = "2381 Weelde"; $contacts["weelde"]["tel"] = "014 65 95 45"; $contacts["weelde"]["tekst"] = "Openingsuren: Zomerperiode 1/3 tot 15/10"; $contacts["weelde"]["openingsuren"]["ma"] = "10-17u"; $contacts["weelde"]["openingsuren"]["di"] = "sluitingsdag"; $contacts["weelde"]["openingsuren"]["woe"] = "13-18u"; $contacts["weelde"]["openingsuren"]["do"] = "10-17u"; $contacts["weelde"]["openingsuren"]["vrij"] = "10-17u"; $contacts["weelde"]["openingsuren"]["zat"] = "10-16u"; $contacts["kessel"]["x"] = "51.28544"; $contacts["kessel"]["y"] = "6.03627"; $contacts["kessel"]["straat"] = "Karreweg Noord 18"; $contacts["kessel"]["gemeente"] = "5995 ME Kessel"; $contacts["kessel"]["tel"] = "077 4622952"; $contacts["kessel"]["tekst"] = "Openingsuren: Zomerperiode 1/3 tot 15/10"; $contacts["kessel"]["openingsuren"]["ma"] = "08-17u"; $contacts["kessel"]["openingsuren"]["di"] = "08-17u"; $contacts["kessel"]["openingsuren"]["woe"] = "08-17u"; $contacts["kessel"]["openingsuren"]["do"] = "08-17u"; $contacts["kessel"]["openingsuren"]["vrij"] = "08-17u"; $contacts["kessel"]["openingsuren"]["zat"] = "09-15u"; //maken van arraylist voor de bounds $teller = 1; foreach ($contacts as $key => $value) { if ($teller != 1) { $LatLngList .= ", "; } $LatLngList .= "new google.maps.LatLng (" . $contacts[$key]["x"] . ", " . $contacts[$key]["y"] . ")"; $markers .= " var image" . $teller . " = ''; var myLatLng" . $teller . " = new google.maps.LatLng(" . $contacts[$key]["x"] . ", " . $contacts[$key]["y"] . "); var marker" . $teller . " = new google.maps.Marker({ position: myLatLng" . $teller . ", map: map, icon: '../images/contact/contact_icoon_kaart.png' });"; $teller++; $contact_informatie .= "<div class='contact_punt'>"; $contact_informatie .= "<h2 class='medium_orange'>" . strtoupper($key) . "</h2>"; $contact_informatie .= "<p class='contact_contactgegevens'>" . $contacts[$key]["straat"] . "</p>"; $contact_informatie .= "<p class='contact_contactgegevens'>" . $contacts[$key]["gemeente"] . "</p>"; $contact_informatie .= "<p class='contact_contactgegevens'>" . $contacts[$key]["tel"] . "</p>"; $contact_informatie .= "<p class='contact_contactgegevens'>" . $contacts[$key]["tekst"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>ma " . $contacts[$key]["openingsuren"]["ma"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>di " . $contacts[$key]["openingsuren"]["di"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>woe " . $contacts[$key]["openingsuren"]["woe"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>do " . $contacts[$key]["openingsuren"]["do"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>vrij " . $contacts[$key]["openingsuren"]["vrij"] . "</p>"; $contact_informatie .= "<p class='contact_openingsuren'>zat " . $contacts[$key]["openingsuren"]["zat"] . "</p>"; $contact_informatie .= "</div>"; } ?>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.5 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6

preferences:
254.36 ms | 406 KiB | 342 Q