3v4l.org

run code in 300+ PHP versions simultaneously
<?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/>"; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Italy is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Luxembourg is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Belgium is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Denmark is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Finland is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of France is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Slovakia is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Slovenia is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Germany is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Greece is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Ireland is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Netherlands is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Portugal is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Spain is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Sweden is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of United Kingdom is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Cyprus is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Lithuania is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Czech Republic is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Estonia is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Hungary is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Latvia is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Malta is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Austria is .<br/> Warning: Undefined variable $capital in /in/1tjpR on line 5 The capital of Poland is .<br/>
Output for 5.0.4 - 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.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
The capital of Italy is .<br/>The capital of Luxembourg is .<br/>The capital of Belgium is .<br/>The capital of Denmark is .<br/>The capital of Finland is .<br/>The capital of France is .<br/>The capital of Slovakia is .<br/>The capital of Slovenia is .<br/>The capital of Germany is .<br/>The capital of Greece is .<br/>The capital of Ireland is .<br/>The capital of Netherlands is .<br/>The capital of Portugal is .<br/>The capital of Spain is .<br/>The capital of Sweden is .<br/>The capital of United Kingdom is .<br/>The capital of Cyprus is .<br/>The capital of Lithuania is .<br/>The capital of Czech Republic is .<br/>The capital of Estonia is .<br/>The capital of Hungary is .<br/>The capital of Latvia is .<br/>The capital of Malta is .<br/>The capital of Austria is .<br/>The capital of Poland is .<br/>
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.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/>

preferences:
326.5 ms | 410 KiB | 451 Q