3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels", "Denmark"=>"Copenhagen", "Finland"=>"Helsinki", "France" => "Paris", "Slovakia"=>"Bratislava", "Slovenia"=>"Ljubljana", "Germany" => "Berlin", "Greece" => "Athens", "Ireland"=>"Dublin", "Netherlands"=>"Amsterdam", "Portugal"=>"Lisbon", "Spain"=>"Madrid", "Sweden"=>"Stockholm", "United Kingdom"=>"London", "Cyprus"=>"Nicosia", "Lithuania"=>"Vilnius", "Czech Republic"=>"Prague", "Estonia"=>"Tallin", "Hungary"=>"Budapest", "Latvia"=>"Riga", "Malta"=>"Valetta", "Austria" => "Vienna", "Poland"=>"Warsaw"); foreach ($ceu as $k=>$v) { print $k." - ".$v; }
Output for 4.3.0 - 7.1.7
Italy - RomeLuxembourg - LuxembourgBelgium - BrusselsDenmark - CopenhagenFinland - HelsinkiFrance - ParisSlovakia - BratislavaSlovenia - LjubljanaGermany - BerlinGreece - AthensIreland - DublinNetherlands - AmsterdamPortugal - LisbonSpain - MadridSweden - StockholmUnited Kingdom - LondonCyprus - NicosiaLithuania - VilniusCzech Republic - PragueEstonia - TallinHungary - BudapestLatvia - RigaMalta - ValettaAustria - ViennaPoland - Warsaw