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 $x => $x_value){ echo "The capital of " . $ceu[$x] . " is " .$ceu[$x_value]. "."; echo "<br/>"; } ?>
based on Y8fJs
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: Rome in /in/BDcPW on line 5 The capital of Rome is .<br/>The capital of Luxembourg is Luxembourg.<br/> Notice: Undefined index: Brussels in /in/BDcPW on line 5 The capital of Brussels is .<br/> Notice: Undefined index: Copenhagen in /in/BDcPW on line 5 The capital of Copenhagen is .<br/> Notice: Undefined index: Helsinki in /in/BDcPW on line 5 The capital of Helsinki is .<br/> Notice: Undefined index: Paris in /in/BDcPW on line 5 The capital of Paris is .<br/> Notice: Undefined index: Bratislava in /in/BDcPW on line 5 The capital of Bratislava is .<br/> Notice: Undefined index: Ljubljana in /in/BDcPW on line 5 The capital of Ljubljana is .<br/> Notice: Undefined index: Berlin in /in/BDcPW on line 5 The capital of Berlin is .<br/> Notice: Undefined index: Athens in /in/BDcPW on line 5 The capital of Athens is .<br/> Notice: Undefined index: Dublin in /in/BDcPW on line 5 The capital of Dublin is .<br/> Notice: Undefined index: Amsterdam in /in/BDcPW on line 5 The capital of Amsterdam is .<br/> Notice: Undefined index: Lisbon in /in/BDcPW on line 5 The capital of Lisbon is .<br/> Notice: Undefined index: Madrid in /in/BDcPW on line 5 The capital of Madrid is .<br/> Notice: Undefined index: Stockholm in /in/BDcPW on line 5 The capital of Stockholm is .<br/> Notice: Undefined index: London in /in/BDcPW on line 5 The capital of London is .<br/> Notice: Undefined index: Nicosia in /in/BDcPW on line 5 The capital of Nicosia is .<br/> Notice: Undefined index: Vilnius in /in/BDcPW on line 5 The capital of Vilnius is .<br/> Notice: Undefined index: Prague in /in/BDcPW on line 5 The capital of Prague is .<br/> Notice: Undefined index: Tallin in /in/BDcPW on line 5 The capital of Tallin is .<br/> Notice: Undefined index: Budapest in /in/BDcPW on line 5 The capital of Budapest is .<br/> Notice: Undefined index: Riga in /in/BDcPW on line 5 The capital of Riga is .<br/> Notice: Undefined index: Valetta in /in/BDcPW on line 5 The capital of Valetta is .<br/> Notice: Undefined index: Vienna in /in/BDcPW on line 5 The capital of Vienna is .<br/> Notice: Undefined index: Warsaw in /in/BDcPW on line 5 The capital of Warsaw is .<br/>
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: Rome in /in/BDcPW on line 5 The capital of Rome is .<br/>The capital of Luxembourg is Luxembourg.<br/> Notice: Undefined index: Brussels in /in/BDcPW on line 5 The capital of Brussels is .<br/> Notice: Undefined index: Copenhagen in /in/BDcPW on line 5 The capital of Copenhagen is .<br/> Notice: Undefined index: Helsinki in /in/BDcPW on line 5 The capital of Helsinki is .<br/> Notice: Undefined index: Paris in /in/BDcPW on line 5 The capital of Paris is .<br/> Notice: Undefined index: Bratislava in /in/BDcPW on line 5 The capital of Bratislava is .<br/> Notice: Undefined index: Ljubljana in /in/BDcPW on line 5 The capital of Ljubljana is .<br/> Notice: Undefined index: Berlin in /in/BDcPW on line 5 The capital of Berlin is .<br/> Notice: Undefined index: Athens in /in/BDcPW on line 5 The capital of Athens is .<br/> Notice: Undefined index: Dublin in /in/BDcPW on line 5 The capital of Dublin is .<br/> Notice: Undefined index: Amsterdam in /in/BDcPW on line 5 The capital of Amsterdam is .<br/> Notice: Undefined index: Lisbon in /in/BDcPW on line 5 The capital of Lisbon is .<br/> Notice: Undefined index: Madrid in /in/BDcPW on line 5 The capital of Madrid is .<br/> Notice: Undefined index: Stockholm in /in/BDcPW on line 5 The capital of Stockholm is .<br/> Notice: Undefined index: London in /in/BDcPW on line 5 The capital of London is .<br/> Notice: Undefined index: Nicosia in /in/BDcPW on line 5 The capital of Nicosia is .<br/>The capital of Vilnius is .<br/>The capital of Prague is .<br/>The capital of Tallin is .<br/>The capital of Budapest is .<br/>The capital of Riga is .<br/>The capital of Valetta is .<br/>The capital of Vienna is .<br/>The capital of Warsaw is .<br/>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: Rome in /in/BDcPW on line 5 The capital of Rome is .<br/>The capital of Luxembourg is Luxembourg.<br/> Notice: Undefined index: Brussels in /in/BDcPW on line 5 The capital of Brussels is .<br/> Notice: Undefined index: Copenhagen in /in/BDcPW on line 5 The capital of Copenhagen is .<br/> Notice: Undefined index: Helsinki in /in/BDcPW on line 5 The capital of Helsinki is .<br/> Notice: Undefined index: Paris in /in/BDcPW on line 5 The capital of Paris is .<br/> Notice: Undefined index: Bratislava in /in/BDcPW on line 5 The capital of Bratislava is .<br/> Notice: Undefined index: Ljubljana in /in/BDcPW on line 5 The capital of Ljubljana is .<br/> Notice: Undefined index: Berlin in /in/BDcPW on line 5 The capital of Berlin is .<br/> Notice: Undefined index: Athens in /in/BDcPW on line 5 The capital of Athens is .<br/> Notice: Undefined index: Dublin in /in/BDcPW on line 5 The capital of Dublin is .<br/> Notice: Undefined index: Amsterdam in /in/BDcPW on line 5 The capital of Amsterdam is .<br/> Notice: Undefined index: Lisbon in /in/BDcPW on line 5 The capital of Lisbon is .<br/> Notice: Undefined index: Madrid in /in/BDcPW on line 5 The capital of Madrid is .<br/> Notice: Undefined index: Stockholm in /in/BDcPW on line 5 The capital of Stockholm is .<br/> Notice: Undefined index: London in /in/BDcPW on line 5 The capital of London is .<br/> Notice: Undefined index: Nicosia in /in/BDcPW on line 5 The capital of Nicosia is .<br/> Notice: Undefined index: Vilnius in /in/BDcPW on line 5 The capital of Vilnius is .<br/> Notice: Undefined index: Prague in /in/BDcPW on line 5 The capital of Prague is .<br/> Notice: Undefined index: Tallin in /in/BDcPW on line 5 The capital of Tallin is .<br/> Notice: Undefined index: Budapest in /in/BDcPW on line 5 The capital of Budapest is .<br/> Notice: Undefined index: Riga in /in/BDcPW on line 5 The capital of Riga is .<br/> Notice: Undefined index: Valetta in /in/BDcPW on line 5 The capital of Valetta is .<br/> Notice: Undefined index: Vienna in /in/BDcPW on line 5 The capital of Vienna is .<br/> Notice: Undefined index: Warsaw in /in/BDcPW on line 5 The capital of Warsaw is .<br/>