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 => $capital) { echo "The capital of $country is $capital" . "<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.0100.01016.63
8.3.50.0070.01221.95
8.3.40.0070.00718.67
8.3.30.0140.00019.09
8.3.20.0000.00820.29
8.3.10.0080.00021.91
8.3.00.0080.00019.38
8.2.180.0080.00818.42
8.2.170.0120.00922.96
8.2.160.0080.00820.38
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00422.29
8.2.110.0000.01022.08
8.2.100.0060.00617.91
8.2.90.0000.00819.03
8.2.80.0060.00317.97
8.2.70.0070.00417.38
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0090.00019.94
8.2.30.0050.00318.08
8.2.20.0000.00817.75
8.2.10.0070.00018.00
8.2.00.0030.00617.73
8.1.280.0070.00725.92
8.1.270.0060.00321.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0000.00721.89
8.1.150.0000.00718.64
8.1.140.0000.00717.45
8.1.130.0040.00417.83
8.1.120.0040.00417.45
8.1.110.0070.00017.49
8.1.100.0050.00217.37
8.1.90.0030.00517.52
8.1.80.0070.00017.50
8.1.70.0030.00317.34
8.1.60.0030.00617.64
8.1.50.0060.00317.52
8.1.40.0040.00417.53
8.1.30.0050.00317.48
8.1.20.0000.00817.59
8.1.10.0040.00417.38
8.1.00.0000.00817.53
8.0.300.0030.00318.77
8.0.290.0000.00717.18
8.0.280.0070.00018.45
8.0.270.0040.00417.30
8.0.260.0030.00317.30
8.0.250.0070.00016.84
8.0.240.0040.00416.85
8.0.230.0070.00016.95
8.0.220.0000.00716.86
8.0.210.0000.00716.79
8.0.200.0000.00716.92
8.0.190.0000.00716.89
8.0.180.0040.00416.94
8.0.170.0000.00816.86
8.0.160.0000.00716.88
8.0.150.0000.00816.86
8.0.140.0030.00316.70
8.0.130.0030.00313.36
8.0.120.0080.00016.75
8.0.110.0040.00416.93
8.0.100.0070.00016.96
8.0.90.0050.00316.85
8.0.80.0070.00716.90
8.0.70.0020.00516.82
8.0.60.0040.00416.87
8.0.50.0000.00716.88
8.0.30.0120.00717.16
8.0.20.0150.00317.40
8.0.10.0000.00717.07
8.0.00.0100.01016.83
7.4.330.0000.00515.08
7.4.320.0030.00316.61
7.4.300.0030.00316.46
7.4.290.0020.00516.50
7.4.280.0000.00716.60
7.4.270.0000.00716.61
7.4.260.0070.00016.41
7.4.250.0000.00816.57
7.4.240.0020.00616.51
7.4.230.0040.00416.36
7.4.220.0160.00616.53
7.4.210.0060.01216.63
7.4.200.0040.00416.50
7.4.190.0080.00016.55
7.4.160.0060.01216.55
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0110.00916.47
7.4.120.0060.01116.51
7.4.110.0110.00816.55
7.4.100.0120.00916.42
7.4.90.0060.01316.46
7.4.80.0120.00919.39
7.4.70.0170.00016.52
7.4.60.0070.01016.30
7.4.50.0000.00816.55
7.4.40.0100.00716.34
7.4.30.0080.01416.40
7.4.00.0100.00714.73
7.3.330.0030.00313.11
7.3.320.0050.00013.11
7.3.310.0070.00016.14
7.3.300.0000.00716.30
7.3.290.0000.01416.32
7.3.280.0070.01016.29
7.3.270.0060.01417.40
7.3.260.0150.00316.61
7.3.250.0100.00716.32
7.3.240.0090.01216.27
7.3.230.0140.00416.39
7.3.210.0090.00916.23
7.3.200.0060.01219.39
7.3.190.0260.03016.57
7.3.180.0080.00816.30
7.3.170.0130.00916.32
7.3.160.0130.00316.25
7.3.120.0090.00614.96
7.2.330.0220.00316.65
7.2.320.0150.00916.61
7.2.310.0130.00316.58
7.2.300.0040.01216.64
7.2.290.0090.01016.42
7.2.00.0090.00319.39
7.1.200.0070.00715.83
7.1.100.0030.00917.96
7.1.70.0090.00017.33
7.1.60.0070.00719.46
7.1.50.0130.00334.87
7.1.00.0100.06722.34
7.0.200.0000.00816.85
7.0.140.0030.07322.08
7.0.60.0170.07319.93
7.0.50.0000.08317.83
7.0.40.0130.03720.27
7.0.30.0230.04320.17
7.0.20.0100.04720.17
7.0.10.0000.09320.20
7.0.00.0070.07720.13
5.6.280.0100.06721.11
5.6.210.0200.05720.48
5.6.200.0030.08018.29
5.6.190.0130.04320.43
5.6.180.0130.06720.43
5.6.170.0370.04320.40
5.6.160.0070.04320.44
5.6.150.0070.05018.14
5.6.140.0030.07018.21
5.6.130.0100.05018.12
5.6.120.0100.08720.97
5.6.110.0070.05021.09
5.6.100.0130.07721.11
5.6.90.0100.07020.95
5.6.80.0070.07020.38
5.5.350.2570.03020.46
5.5.340.0170.07317.89
5.5.330.0100.07020.57
5.5.320.0330.07020.30
5.5.310.0270.06720.18
5.5.300.0000.04017.98
5.5.290.0130.07717.91
5.5.280.0070.04020.80
5.5.270.0230.07020.68
5.5.260.0100.08320.79
5.5.250.0070.04020.68
5.5.240.0000.07720.35
5.4.450.0700.06019.48
5.4.440.0800.04319.61
5.4.430.0730.05719.60
5.4.420.0800.05319.44
5.4.410.0800.05019.00
5.4.400.0670.06719.16
5.4.390.0730.04719.13
5.4.380.0100.05718.72
5.4.370.0130.05318.63
5.4.360.0100.05718.67
5.4.350.0170.07318.73
5.4.340.0200.04718.70
5.4.320.0020.04012.46
5.4.310.0040.04412.45
5.4.300.0070.04112.46
5.4.290.0120.05912.45
5.4.280.0090.05312.35
5.4.270.0110.04912.35
5.4.260.0080.05512.35
5.4.250.0100.05212.36
5.4.240.0100.05412.35
5.4.230.0090.05512.34
5.4.220.0120.05212.34
5.4.210.0110.05212.35
5.4.200.0090.05712.35
5.4.190.0090.05612.34
5.4.180.0100.05412.34
5.4.170.0090.05512.35
5.4.160.0180.08412.35
5.4.150.0110.04812.34
5.4.140.0100.05212.03
5.4.130.0110.05012.02
5.4.120.0140.07211.98
5.4.110.0030.05911.97
5.4.100.0120.04911.97
5.4.90.0090.05711.97
5.4.80.0090.05611.98
5.4.70.0140.05311.97
5.4.60.0120.05111.96
5.4.50.0100.05811.96
5.4.40.0180.04711.95
5.4.30.0100.07411.95
5.4.20.0060.05211.95
5.4.10.0100.07011.95
5.4.00.0080.05311.44
5.3.290.0070.03912.80
5.3.280.0110.05112.71
5.3.270.0130.07212.72
5.3.260.0090.06612.72
5.3.250.0110.05612.72
5.3.240.0130.08412.72
5.3.230.0300.09212.71
5.3.220.0090.05712.68
5.3.210.0090.05912.68
5.3.200.0140.05312.68
5.3.190.0160.05212.68
5.3.180.0110.06312.67
5.3.170.0110.06012.67
5.3.160.0110.05912.67
5.3.150.0130.06512.67
5.3.140.0110.05512.66
5.3.130.0100.05912.66
5.3.120.0090.05512.66
5.3.110.0120.05212.66
5.3.100.0090.05112.11
5.3.90.0070.05712.08
5.3.80.0120.04812.07
5.3.70.0080.05112.07
5.3.60.0090.05112.06
5.3.50.0100.05212.00
5.3.40.0070.05312.00
5.3.30.0100.05311.95
5.3.20.0090.05311.72
5.3.10.0160.04811.69
5.3.00.0080.04911.68
5.2.170.0090.0439.18
5.2.160.0070.0419.18
5.2.150.0060.0369.18
5.2.140.0110.0379.18
5.2.130.0080.0409.14
5.2.120.0060.0439.14
5.2.110.0050.0399.14
5.2.100.0050.0409.14
5.2.90.0070.0369.14
5.2.80.0110.0579.14
5.2.70.0070.0359.14
5.2.60.0000.0399.09
5.2.50.0050.0339.06
5.2.40.0040.0329.04
5.2.30.0060.0319.01
5.2.20.0030.0349.00
5.2.10.0060.0298.93
5.2.00.0050.0318.79
5.1.60.0050.0268.07
5.1.50.0050.0258.07
5.1.40.0020.0278.05
5.1.30.0060.0258.40
5.1.20.0040.0278.42
5.1.10.0040.0268.15
5.1.00.0070.0238.14
5.0.50.0030.0216.62
5.0.40.0050.0186.48
5.0.30.0040.0306.30
5.0.20.0040.0196.26
5.0.10.0040.0206.24
5.0.00.0060.0286.24
4.4.90.0040.0144.78
4.4.80.0040.0194.75
4.4.70.0020.0164.75
4.4.60.0060.0124.75
4.4.50.0010.0184.77
4.4.40.0050.0234.71
4.4.30.0010.0174.76
4.4.20.0040.0144.84
4.4.10.0040.0144.85
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0154.62
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0030.0153.29
4.3.20.0030.0153.27
4.3.10.0010.0163.22
4.3.00.0030.0277.89

preferences:
42.65 ms | 401 KiB | 5 Q