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 $country => $captial){ echo "The capital of " . $country . " is " .$capital . "."; echo "<br/>"; } ?>
based on BDcPW
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Italy is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Luxembourg is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Belgium is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Denmark is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Finland is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of France is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Slovakia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Slovenia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Germany is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Greece is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Ireland is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Netherlands is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Portugal is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Spain is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Sweden is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of United Kingdom is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Cyprus is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Lithuania is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Czech Republic is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Estonia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Hungary is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Latvia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Malta is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Austria is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Poland is .<br/>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Italy is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Luxembourg is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Belgium is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Denmark is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Finland is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of France is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Slovakia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Slovenia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Germany is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Greece is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Ireland is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Netherlands is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Portugal is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Spain is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Sweden is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of United Kingdom is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Cyprus is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Lithuania is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Czech Republic is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Estonia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Hungary is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Latvia is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Malta is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Austria is .<br/> Notice: Undefined variable: capital in /in/1tjpR on line 5 The capital of Poland is .<br/>