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") ; - See more at: //http://www.w3resource.com/php-exercises/php-array-exercises.php#sthash.iyB9z01M.dpuf ksort($ceu); foreach ($ceu as $key=>$value) { echo "The capital of $key is $value<br />"; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.310.0230.07319.20
5.4.300.0230.06719.09
5.4.290.0230.07019.31
5.4.280.0200.06318.95
5.4.270.0200.05718.99
5.4.260.0200.07319.21
5.4.250.0270.03719.13
5.4.240.0230.07019.06
5.4.230.0230.05319.21
5.4.220.0170.07019.23
5.4.210.0230.05319.09
5.4.200.0170.06319.24
5.4.190.0270.05719.07
5.4.180.0270.04718.88
5.4.170.0170.05018.98
5.4.160.0200.05718.96
5.4.150.0200.05318.93
5.4.140.0230.06316.46
5.4.130.0330.05716.49
5.4.120.0230.06316.66
5.4.110.0270.07016.56
5.4.100.0270.05716.19
5.4.90.0200.06316.54
5.4.80.0270.06316.16
5.4.70.0200.04316.39
5.4.60.0230.06716.25
5.4.50.0230.04716.23
5.4.40.0270.06016.51
5.4.30.0200.05316.32
5.4.20.0230.05716.13
5.4.10.0270.06316.50
5.4.00.0270.05015.94
5.3.280.0270.07314.55
5.3.270.0270.03314.47
5.3.260.0230.04014.48
5.3.250.0270.06314.46
5.3.240.0330.04314.45
5.3.230.0270.03714.55
5.3.220.0330.03714.44
5.3.210.0270.04314.52
5.3.200.0230.06314.43
5.3.190.0130.05314.52
5.3.180.0230.06014.40
5.3.170.0300.05714.51
5.3.160.0230.07314.52
5.3.150.0170.08014.41
5.3.140.0330.06314.44
5.3.130.0200.07714.49
5.3.120.0230.03714.50
5.3.110.0230.03714.43
5.3.100.0230.07013.88
5.3.90.0230.04014.07
5.3.80.0230.07014.07
5.3.70.0270.04013.85
5.3.60.0230.06313.94
5.3.50.0170.04313.86
5.3.40.0230.06713.73
5.3.30.0100.07013.86
5.3.20.0230.05713.65
5.3.10.0270.06713.61
5.3.00.0230.04713.59
5.2.170.0200.06012.33
5.2.160.0170.06312.33
5.2.150.0200.05712.33
5.2.140.0200.05012.33
5.2.130.0270.03312.33
5.2.120.0370.05312.33
5.2.110.0170.03012.33
5.2.100.0200.03712.33
5.2.90.0230.05312.33
5.2.80.0170.06712.33
5.2.70.0200.05712.33
5.2.60.0170.06012.33
5.2.50.0270.04712.33
5.2.40.0070.04712.33
5.2.30.0130.06312.33
5.2.20.0200.04012.33
5.2.10.0130.06712.33
5.2.00.0100.03312.33
5.1.60.0130.02712.33
5.1.50.0170.03712.33
5.1.40.0230.03712.33
5.1.30.0130.04712.33
5.1.20.0270.02712.33
5.1.10.0170.05712.33
5.1.00.0130.04312.33
5.0.50.0100.03712.33
5.0.40.0070.02712.33
5.0.30.0070.06312.33
5.0.20.0100.02012.33
5.0.10.0030.05012.33
5.0.00.0100.05012.33
4.4.90.0130.02312.33
4.4.80.0100.03312.33
4.4.70.0100.02012.33
4.4.60.0070.02312.33
4.4.50.0100.01712.33
4.4.40.0070.02312.33
4.4.30.0100.02712.33
4.4.20.0100.02712.33
4.4.10.0100.02312.33
4.4.00.0030.03312.33
4.3.110.0130.03012.33
4.3.100.0100.01312.33
4.3.90.0130.03012.33
4.3.80.0100.03012.33
4.3.70.0130.02312.33
4.3.60.0170.01312.33
4.3.50.0070.02012.33
4.3.40.0100.04712.33
4.3.30.0030.03012.33
4.3.20.0030.03712.33
4.3.10.0070.02012.33
4.3.00.0030.03012.33

preferences:
153.34 ms | 1394 KiB | 7 Q