3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0