3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?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=>$y) { echo "The capital of ".$x."is".$y; echo "<br>"; } ?> </body> </html>

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)
8.3.60.0210.00016.25
8.3.50.0100.00921.89
8.3.40.0150.00018.89
8.3.30.0070.01419.14
8.3.20.0040.00420.34
8.3.10.0040.00423.70
8.3.00.0080.00020.95
8.2.180.0150.00316.38
8.2.170.0110.00422.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00020.91
8.2.110.0060.00322.13
8.2.100.0090.00319.46
8.2.90.0000.00718.96
8.2.80.0050.00317.97
8.2.70.0080.00017.38
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0000.00820.07
8.2.30.0030.00518.13
8.2.20.0030.00617.74
8.2.10.0000.00818.08
8.2.00.0040.00717.73
8.1.280.0180.00325.92
8.1.270.0040.00423.76
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0060.00619.08
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0080.00417.36
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0000.01118.39
8.1.160.0050.00221.95
8.1.150.0000.00818.64
8.1.140.0040.00417.56
8.1.130.0030.00317.73
8.1.120.0000.00817.45
8.1.110.0040.00417.47
8.1.100.0030.00617.49
8.1.90.0000.00717.47
8.1.80.0070.00017.32
8.1.70.0040.00417.41
8.1.60.0040.00417.57
8.1.50.0040.00417.50
8.1.40.0040.00417.40
8.1.30.0000.00817.64
8.1.20.0040.00417.58
8.1.10.0050.00217.55
8.1.00.0030.00517.33
8.0.300.0070.00018.77
8.0.290.0040.00417.16
8.0.280.0000.00718.45
8.0.270.0070.00017.26
8.0.260.0000.00617.18
8.0.250.0070.00016.92
8.0.240.0040.00416.86
8.0.230.0030.00316.88
8.0.220.0000.00716.91
8.0.210.0000.00716.86
8.0.200.0030.00516.88
8.0.190.0060.00316.84
8.0.180.0040.00416.91
8.0.170.0000.00716.82
8.0.160.0050.00316.88
8.0.150.0000.00716.89
8.0.140.0080.00016.91
8.0.130.0040.00413.29
8.0.120.0000.00716.83
8.0.110.0040.00416.88
8.0.100.0040.00416.93
8.0.90.0040.00416.93
8.0.80.0100.00616.92
8.0.70.0050.00316.68
8.0.60.0040.00416.72
8.0.50.0040.00416.88
8.0.30.0130.00617.16
8.0.20.0130.00617.41
8.0.10.0040.00417.02
8.0.00.0100.00716.76
7.4.330.0050.00015.00
7.4.320.0000.00616.46
7.4.300.0000.00616.51
7.4.290.0000.00816.39
7.4.280.0000.00716.63
7.4.270.0000.00716.58
7.4.260.0030.00516.63
7.4.250.0070.00016.59
7.4.240.0030.00316.63
7.4.230.0040.00416.57
7.4.220.0110.00716.50
7.4.210.0120.00716.59
7.4.200.0000.00716.34
7.4.190.0070.00016.76
7.4.160.0090.00916.55
7.4.150.0140.01117.40
7.4.140.0100.00717.86
7.4.130.0110.00616.38
7.4.120.0140.00416.46
7.4.110.0150.00816.50
7.4.100.0100.00716.37
7.4.90.0070.01116.48
7.4.80.0110.01119.39
7.4.70.0100.01016.42
7.4.60.0140.00316.51
7.4.50.0020.00216.25
7.4.40.0080.00816.50
7.4.30.0070.01016.55
7.4.00.0090.00914.86
7.3.330.0030.00313.11
7.3.320.0050.00013.08
7.3.310.0030.00316.39
7.3.300.0000.00716.16
7.3.290.0030.01016.28
7.3.280.0070.00916.26
7.3.270.0160.00617.40
7.3.260.0100.00716.25
7.3.250.0110.00816.43
7.3.240.0070.01116.33
7.3.230.0070.01016.39
7.3.210.0240.00016.29
7.3.200.0090.00819.39
7.3.190.0170.00416.49
7.3.180.0100.00616.48
7.3.170.0060.01016.55
7.3.160.0120.01216.20
7.3.120.0040.01214.51
7.2.330.0040.02116.73
7.2.320.0120.00616.55
7.2.310.0150.00416.72
7.2.300.0130.00316.56
7.2.290.0090.00916.40
7.2.00.0130.00819.06
7.1.100.0030.00617.83
7.1.70.0000.00816.95
7.1.60.0090.01619.46
7.1.50.0030.01416.73
7.1.00.0030.07322.27
7.0.200.0080.00316.52
7.0.140.0030.06721.99
7.0.60.0070.08019.99
7.0.50.0000.04717.88
7.0.40.0000.06720.03
7.0.30.0300.05720.00
7.0.20.0270.08320.13
7.0.10.0100.08320.12
7.0.00.0170.05720.30
5.6.280.0100.06721.09
5.6.210.0070.04020.53
5.6.200.0070.04718.23
5.6.190.0100.08020.41
5.6.180.0230.06320.77
5.6.170.0170.04320.37
5.6.160.0030.06320.49
5.6.150.0070.08318.22
5.6.140.0130.07318.21
5.6.130.0030.08318.20
5.6.120.0030.04320.98
5.6.110.0100.03721.13
5.6.100.0070.08321.04
5.6.90.0030.04320.88
5.6.80.0130.07720.53
5.5.350.4230.04320.43
5.5.340.0070.07718.02
5.5.330.0000.04720.19
5.5.320.0330.07720.34
5.5.310.0370.07020.28
5.5.300.0000.05017.96
5.5.290.0000.09317.96
5.5.280.0100.06020.68
5.5.270.0070.07020.86
5.5.260.0030.04020.73
5.5.250.0030.08720.59
5.5.240.0030.07320.15
5.4.450.0670.05319.46
5.4.440.0300.05019.41
5.4.430.0170.04319.40
5.4.420.0170.04019.35
5.4.410.0130.04719.13
5.4.400.0430.03718.92
5.4.390.0270.04319.08
5.4.380.0170.05018.57
5.4.370.0170.05318.51
5.4.360.0170.05318.63
5.4.350.0200.04718.67
5.4.340.0130.05318.51
5.4.320.0090.03312.46
5.4.310.0110.06312.46
5.4.300.0060.03812.46
5.4.290.0040.04112.46
5.4.280.0070.03612.36
5.4.270.0070.03612.36
5.4.260.0060.04012.35
5.4.250.0050.03912.36
5.4.240.0070.03712.36
5.4.230.0100.03612.35
5.4.220.0080.03512.34
5.4.210.0060.03712.35
5.4.200.0060.03812.34
5.4.190.0090.03512.34
5.4.180.0070.03612.34
5.4.170.0060.04212.36
5.4.160.0100.04612.35
5.4.150.0080.05012.35
5.4.140.0120.04512.03
5.4.130.0110.04512.02
5.4.120.0090.04911.97
5.4.110.0090.04711.97
5.4.100.0100.04111.97
5.4.90.0110.04711.97
5.4.80.0110.04311.97
5.4.70.0060.03711.97
5.4.60.0090.03311.96
5.4.50.0090.04811.97
5.4.40.0080.03711.95
5.4.30.0060.03911.96
5.4.20.0070.03511.95
5.4.10.0040.04011.96
5.4.00.0070.03711.44
5.3.290.0060.04412.80
5.3.280.0090.03912.71
5.3.270.0060.04812.72
5.3.260.0040.04212.72
5.3.250.0070.03612.72
5.3.240.0090.03412.71
5.3.230.0060.03812.71
5.3.220.0060.03912.68
5.3.210.0070.04012.68
5.3.200.0060.03812.68
5.3.190.0100.03512.68
5.3.180.0050.03712.68
5.3.170.0060.03912.67
5.3.160.0070.03912.68
5.3.150.0090.05312.67
5.3.140.0110.04712.66
5.3.130.0100.05112.66
5.3.120.0070.05312.66
5.3.110.0110.04812.66
5.3.100.0040.04812.12
5.3.90.0060.04912.09
5.3.80.0090.04712.07
5.3.70.0110.04512.07
5.3.60.0080.04512.06
5.3.50.0090.03712.00
5.3.40.0050.03812.00
5.3.30.0130.03411.95
5.3.20.0110.05711.72
5.3.10.0060.04911.69
5.3.00.0120.04211.68
5.2.170.0080.0399.18
5.2.160.0060.0399.18
5.2.150.0080.0399.18
5.2.140.0130.0529.18
5.2.130.0100.0249.14
5.2.120.0030.0299.14
5.2.110.0040.0309.14
5.2.100.0050.0289.14
5.2.90.0080.0359.14
5.2.80.0040.0329.14
5.2.70.0030.0339.14
5.2.60.0040.0319.09
5.2.50.0070.0299.06
5.2.40.0080.0279.04
5.2.30.0080.0289.01
5.2.20.0080.0269.00
5.2.10.0060.0278.92
5.2.00.0030.0318.78
5.1.60.0040.0258.07
5.1.50.0020.0278.07
5.1.40.0070.0288.05
5.1.30.0070.0248.40
5.1.20.0060.0258.42
5.1.10.0030.0288.14
5.1.00.0010.0298.14
5.0.50.0030.0226.63
5.0.40.0020.0216.48
5.0.30.0020.0336.30
5.0.20.0040.0206.27
5.0.10.0040.0216.25
5.0.00.0050.0306.23
4.4.90.0030.0164.78
4.4.80.0040.0144.76
4.4.70.0030.0164.75
4.4.60.0040.0154.75
4.4.50.0020.0194.77
4.4.40.0040.0334.70
4.4.30.0020.0164.76
4.4.20.0050.0164.85
4.4.10.0030.0184.85
4.4.00.0060.0344.75
4.3.110.0020.0404.67
4.3.100.0050.0244.66
4.3.90.0050.0244.63
4.3.80.0080.0304.59
4.3.70.0040.0214.63
4.3.60.0040.0214.63
4.3.50.0040.0224.62
4.3.40.0060.0334.54
4.3.30.0040.0243.29
4.3.20.0040.0213.27
4.3.10.0030.0223.22
4.3.00.0070.01712.60

preferences:
38.94 ms | 401 KiB | 5 Q