3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
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
Output for hhvm-3.10.0

Process exited with code 153.