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 $x => $x_value){ echo "The capital of " . $ceu[$x] . " is " .$ceu[$x_value]. "."; echo "<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)
8.3.60.0090.00618.21
8.3.50.0090.01122.04
8.3.40.0030.01718.83
8.3.30.0140.00319.01
8.3.20.0040.00420.25
8.3.10.0080.00020.42
8.3.00.0000.00819.50
8.2.180.0110.00418.67
8.2.170.0000.01422.96
8.2.160.0070.00720.52
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00821.11
8.2.110.0050.00519.25
8.2.100.0120.00017.71
8.2.90.0030.00619.22
8.2.80.0000.00817.97
8.2.70.0070.00317.50
8.2.60.0000.00918.05
8.2.50.0090.00018.10
8.2.40.0000.00818.28
8.2.30.0000.00819.50
8.2.20.0040.00417.80
8.2.10.0050.00218.18
8.2.00.0060.00317.68
8.1.280.0060.00925.92
8.1.270.0040.00422.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00922.31
8.1.230.0080.00317.89
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00018.58
8.1.160.0080.00021.93
8.1.150.0000.00718.80
8.1.140.0060.00317.49
8.1.130.0000.00717.82
8.1.120.0040.00417.48
8.1.110.0030.00617.46
8.1.100.0040.00417.50
8.1.90.0030.00317.49
8.1.80.0000.00717.44
8.1.70.0080.00017.40
8.1.60.0030.00617.58
8.1.50.0050.00317.52
8.1.40.0040.00417.46
8.1.30.0000.00817.46
8.1.20.0030.00617.61
8.1.10.0040.00417.55
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0000.00717.22
8.0.260.0000.00617.25
8.0.250.0070.00016.93
8.0.240.0000.00716.99
8.0.230.0030.00316.95
8.0.220.0090.00017.00
8.0.210.0080.00016.98
8.0.200.0030.00316.99
8.0.190.0000.00817.00
8.0.180.0040.00416.96
8.0.170.0040.00416.88
8.0.160.0040.00416.91
8.0.150.0030.00316.88
8.0.140.0040.00416.82
8.0.130.0030.00313.37
8.0.120.0040.00416.94
8.0.110.0030.00516.93
8.0.100.0040.00416.91
8.0.90.0040.00416.75
8.0.80.0090.00916.90
8.0.70.0050.00317.02
8.0.60.0030.00517.07
8.0.50.0000.00716.78
8.0.30.0080.01516.98
8.0.20.0110.01017.40
8.0.10.0040.00416.88
8.0.00.0080.01016.90
7.4.330.0050.00015.00
7.4.320.0070.00016.53
7.4.300.0030.00316.61
7.4.290.0030.00316.41
7.4.280.0050.00216.41
7.4.270.0000.00716.56
7.4.260.0000.00816.40
7.4.250.0050.00216.36
7.4.240.0040.00416.46
7.4.230.0000.00716.71
7.4.220.0130.01316.59
7.4.210.0110.00316.53
7.4.200.0040.00416.56
7.4.160.0150.00916.45
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0080.00816.64
7.4.120.0110.00816.43
7.4.110.0120.00616.51
7.4.100.0030.01316.52
7.4.90.0070.01116.59
7.4.80.0110.00719.39
7.4.70.0100.00616.52
7.4.60.0080.01616.60
7.4.50.0080.00016.57
7.4.40.0140.00416.57
7.4.30.0140.00616.44
7.4.00.0040.01114.95
7.3.330.0070.00013.23
7.3.320.0040.00413.20
7.3.310.0040.00416.19
7.3.300.0030.00316.23
7.3.290.0130.00716.38
7.3.280.0090.00616.37
7.3.270.0110.00617.40
7.3.260.0120.00616.40
7.3.250.0100.00816.45
7.3.240.0110.00616.32
7.3.230.0100.00716.48
7.3.210.0110.00616.59
7.3.200.0040.01519.39
7.3.190.0100.00716.38
7.3.180.0030.01316.34
7.3.170.0080.01416.35
7.3.160.0140.00416.34
7.2.330.0090.00916.62
7.2.320.0120.00616.69
7.2.310.0120.01216.39
7.2.300.0000.01516.77
7.2.290.0120.00616.59
7.2.00.0000.01219.34
7.1.100.0030.00918.29
7.1.70.0060.00616.90
7.1.60.0060.01219.61
7.1.50.0000.02416.68
7.1.00.0130.06722.31
7.0.200.0320.00715.00
7.0.140.0030.07322.15
7.0.60.0030.06719.89
7.0.50.0070.03717.77
7.0.40.0130.06020.40
7.0.30.0570.06320.17
7.0.20.0300.08020.12
7.0.10.0070.06720.09
7.0.00.0170.06720.18
5.6.280.0000.07721.07
5.6.210.0100.04020.76
5.6.200.0070.04018.25
5.6.190.0030.04320.56
5.6.180.0200.03720.27
5.6.170.0230.08320.52
5.6.160.0030.04720.61
5.6.150.0030.07718.25
5.6.140.0100.04718.21
5.6.130.0030.07718.21
5.6.120.0100.08021.09
5.6.110.0030.06020.99
5.6.100.0070.04020.98
5.6.90.0030.07021.14
5.6.80.0070.06020.38
5.6.70.0130.08020.46
5.5.350.0070.07320.39
5.5.340.0100.08017.95
5.5.330.0000.04320.23
5.5.320.0270.07320.31
5.5.310.0330.07320.12
5.5.300.0100.08017.88
5.5.290.0070.07317.97
5.5.280.0000.04320.96
5.5.270.0130.03020.73
5.5.260.0070.04720.87
5.5.250.0070.08320.45
5.5.240.0030.08020.26
5.4.450.4300.04319.59
5.4.440.0070.08019.37
5.4.430.1700.06719.48
5.4.420.4400.04319.32
5.4.410.4700.03719.26
5.4.400.4200.03718.93
5.4.390.3770.04018.87
5.4.380.4300.03719.01
5.4.370.5130.04019.16
5.4.360.4430.04319.00
5.4.350.4230.03018.93
5.4.340.4200.04319.11
5.4.320.3800.04719.25
5.4.310.3400.03718.87
5.4.300.4300.03019.04
5.4.290.4200.04019.20
5.4.280.4230.04019.00
5.4.270.4270.04019.20
5.4.260.4200.04019.00
5.4.250.4130.04019.23
5.4.240.4130.03019.04
5.4.230.4000.03718.88
5.4.220.4130.04319.06
5.4.210.3900.03719.14
5.4.200.2430.03318.92
5.4.190.3830.04019.03
5.4.180.4730.05018.99
5.4.170.3670.03318.98
5.4.160.3400.03319.00
5.4.150.2900.04019.14
5.4.140.3770.04316.29
5.4.130.2970.03316.17
5.4.120.2770.02316.37
5.4.110.4070.03716.40
5.4.100.4130.03316.40
5.4.90.4300.03316.35
5.4.80.5000.03316.37
5.4.70.3900.04016.36
5.4.60.4270.03016.36
5.4.50.3930.03316.32
5.4.40.4170.03716.34
5.4.30.4370.04016.29
5.4.20.3370.03716.10
5.4.10.4270.03716.21
5.4.00.3830.03315.73
5.3.290.3470.04314.45
5.3.280.4000.03714.54
5.3.270.3370.04014.54
5.3.260.3930.03714.55
5.3.250.4000.04314.57
5.3.240.3330.03714.53
5.3.230.3230.04014.57
5.3.220.3800.04014.50
5.3.210.3930.03014.51
5.3.200.3800.04014.51
5.3.190.4100.03714.39
5.3.180.3570.03714.54
5.3.170.4970.03314.66
5.3.160.4100.03314.52
5.3.150.4100.03714.44
5.3.140.3900.03714.44
5.3.130.4530.04014.43
5.3.120.4000.03314.56
5.3.110.3930.03014.50
5.3.100.3830.04013.98
5.3.90.4370.03313.95
5.3.80.4470.04713.98
5.3.70.4170.03013.95
5.3.60.4130.03313.82
5.3.50.3600.03313.89
5.3.40.3830.03713.77
5.3.30.4000.02713.84
5.3.20.4870.03313.78
5.3.10.4130.04013.50
5.3.00.5100.04013.61
5.2.170.3700.02011.10
5.2.160.3600.02711.30
5.2.150.3200.03011.11
5.2.140.3500.02711.11
5.2.130.3530.02711.18
5.2.120.3500.03311.06
5.2.110.3400.02311.08
5.2.100.3530.03011.05
5.2.90.3230.03011.09
5.2.80.3500.03711.04
5.2.70.3530.03010.92
5.2.60.3500.03010.93
5.2.50.3970.03710.95
5.2.40.3070.03310.90
5.2.30.2600.02310.96
5.2.20.2630.03311.04
5.2.10.2930.02710.94
5.2.00.2570.03010.87
5.1.60.3070.0239.90
5.1.50.2870.02010.07
5.1.40.3370.0209.95
5.1.30.3370.02310.19
5.1.20.3130.02010.26
5.1.10.3070.02310.02
5.1.00.3470.02710.05
5.0.50.1530.0208.52
5.0.40.1600.0208.45
5.0.30.1870.0338.39
5.0.20.1830.0138.17
5.0.10.1970.0178.18
5.0.00.1870.0308.15
4.4.90.1300.0177.28
4.4.80.1670.0107.28
4.4.70.1570.0177.28
4.4.60.1600.0177.28
4.4.50.1300.0137.28
4.4.40.1600.0307.28
4.4.30.1430.0137.28
4.4.20.1570.0207.28
4.4.10.1900.0207.28
4.4.00.1830.0237.28
4.3.110.1570.0177.28
4.3.100.1930.0137.28
4.3.90.1530.0177.28
4.3.80.1870.0207.28
4.3.70.1800.0137.28
4.3.60.1670.0137.28
4.3.50.1830.0077.28
4.3.40.1730.0237.28
4.3.30.0970.0207.28
4.3.20.0570.0277.28
4.3.10.0970.0137.28
4.3.00.0770.0177.28

preferences:
42.29 ms | 401 KiB | 5 Q