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 $country capital is $capital \n"; } ?>

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.0180.00016.38
8.3.50.0110.00622.96
8.3.40.0110.00418.60
8.3.30.0070.00718.92
8.3.20.0070.00020.13
8.3.10.0040.00420.48
8.3.00.0130.00619.18
8.2.180.0130.00816.35
8.2.170.0000.01422.96
8.2.160.0100.00720.50
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00421.04
8.2.110.0030.00720.52
8.2.100.0040.00817.91
8.2.90.0060.00318.22
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0030.00517.80
8.2.50.0030.00718.07
8.2.40.0050.00318.09
8.2.30.0000.00719.55
8.2.20.0070.00017.63
8.2.10.0000.00718.17
8.2.00.0040.00417.86
8.1.280.0100.01025.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00822.20
8.1.230.0040.00820.89
8.1.220.0000.00817.80
8.1.210.0080.00018.84
8.1.200.0050.00517.23
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0060.00318.64
8.1.160.0040.00421.98
8.1.150.0000.00718.81
8.1.140.0030.00517.38
8.1.130.0000.00717.87
8.1.120.0070.00017.48
8.1.110.0030.00517.44
8.1.100.0000.00717.48
8.1.90.0040.00417.35
8.1.80.0030.00617.36
8.1.70.0000.00717.31
8.1.60.0030.00517.47
8.1.50.0000.00817.42
8.1.40.0040.00417.48
8.1.30.0040.00417.54
8.1.20.0030.00717.66
8.1.10.0040.00417.55
8.1.00.0000.00717.42
8.0.300.0040.00419.96
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0030.00317.26
8.0.260.0060.00017.18
8.0.250.0000.00716.85
8.0.240.0000.00716.85
8.0.230.0070.00016.99
8.0.220.0030.00316.91
8.0.210.0040.00416.89
8.0.200.0030.00316.91
8.0.190.0070.00017.00
8.0.180.0030.00516.79
8.0.170.0040.00416.88
8.0.160.0000.00716.79
8.0.150.0000.00716.73
8.0.140.0000.00716.78
8.0.130.0000.00513.36
8.0.120.0040.00416.84
8.0.110.0040.00416.86
8.0.100.0040.00416.83
8.0.90.0040.00416.79
8.0.80.0030.01316.81
8.0.70.0040.00416.90
8.0.60.0040.00416.93
8.0.50.0040.00416.80
8.0.30.0120.00717.06
8.0.20.0150.00717.40
8.0.10.0000.00817.12
8.0.00.0130.00816.69
7.4.330.0020.00215.00
7.4.320.0070.00016.57
7.4.300.0000.00616.57
7.4.290.0030.00316.49
7.4.280.0030.00516.35
7.4.270.0030.00316.61
7.4.260.0070.00016.64
7.4.250.0050.00316.37
7.4.240.0020.00516.54
7.4.230.0000.00716.50
7.4.220.0190.00916.45
7.4.210.0070.00716.65
7.4.200.0000.00716.41
7.4.160.0040.01616.41
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0120.00816.50
7.4.120.0130.00916.46
7.4.110.0100.00716.46
7.4.100.0150.00216.53
7.4.90.0210.00416.59
7.4.80.0070.01019.39
7.4.70.0140.00316.41
7.4.60.0080.01116.43
7.4.50.0080.00016.34
7.4.40.0060.01316.36
7.4.30.0100.00716.63
7.4.00.0070.01114.83
7.3.330.0050.00013.30
7.3.320.0050.00013.05
7.3.310.0070.00016.39
7.3.300.0030.00316.31
7.3.290.0110.00416.38
7.3.280.0100.00516.30
7.3.270.0000.01717.40
7.3.260.0070.01116.54
7.3.250.0110.00916.35
7.3.240.0100.01016.63
7.3.230.0080.00816.39
7.3.210.0110.00716.34
7.3.200.0040.01219.39
7.3.190.0100.00616.57
7.3.180.0060.01016.35
7.3.170.0140.00316.35
7.3.160.0130.01016.31
7.3.120.0090.00915.16
7.3.110.0070.01014.75
7.3.100.0040.01114.86
7.3.90.0070.00714.87
7.3.80.0130.00014.68
7.3.70.0030.00614.91
7.3.60.0000.01514.59
7.3.50.0040.01114.78
7.3.40.0030.01014.98
7.3.30.0040.01114.77
7.3.20.0070.00716.65
7.3.10.0040.00516.51
7.3.00.0030.00816.55
7.2.330.0090.00916.62
7.2.320.0060.01316.32
7.2.310.0080.00816.71
7.2.300.0120.01216.57
7.2.290.0160.00516.28
7.2.240.0070.01414.89
7.2.230.0040.01515.23
7.2.220.0060.00914.73
7.2.210.0070.01014.82
7.2.200.0060.00914.91
7.2.190.0040.01115.14
7.2.180.0000.01214.58
7.2.170.0060.00915.00
7.2.160.0110.00315.19
7.2.150.0040.01117.02
7.2.140.0030.00916.72
7.2.130.0080.00516.83
7.2.120.0030.00816.67
7.2.110.0050.00716.79
7.2.100.0100.00316.82
7.2.90.0070.00516.79
7.2.80.0050.00716.81
7.2.70.0050.00516.86
7.2.60.0020.00816.62
7.2.50.0030.01016.90
7.2.40.0040.00816.76
7.2.30.0080.00416.89
7.2.20.0050.00716.90
7.2.10.0070.00616.86
7.2.00.0060.00717.72
7.1.330.0030.01415.75
7.1.320.0130.00015.54
7.1.310.0060.00915.76
7.1.300.0040.00715.82
7.1.290.0110.00415.71
7.1.280.0040.00715.65
7.1.270.0090.00315.79
7.1.260.0080.00415.66
7.1.250.0070.00415.62
7.1.100.0000.00918.29
7.1.70.0040.00416.89
7.1.60.0070.00719.46
7.1.50.0030.02016.85
7.1.00.0030.07722.40
7.0.200.0000.00716.40
7.0.140.0000.07722.00
7.0.60.0100.05320.01
7.0.50.0130.08017.81
7.0.40.0070.04320.04
7.0.30.0430.04320.12
7.0.20.0270.07720.20
7.0.10.0130.06019.95
7.0.00.0130.04720.32
5.6.280.0030.07021.02
5.6.210.0100.07720.51
5.6.200.0070.04018.18
5.6.190.0070.04320.27
5.6.180.0170.04720.67
5.6.170.0130.06320.71
5.6.160.0170.07020.46
5.6.150.0030.07318.18
5.6.140.0170.07318.25
5.6.130.0030.07718.13
5.6.120.0070.08721.02
5.6.110.0200.07021.14
5.6.100.0070.08320.98
5.6.90.0100.05020.95
5.6.80.0100.07720.38
5.6.70.4530.04020.39
5.5.350.0200.07320.45
5.5.340.0130.08017.99
5.5.330.0170.08320.40
5.5.320.0300.04020.34
5.5.310.0230.07320.31
5.5.300.0070.04717.95
5.5.290.0070.05018.01
5.5.280.0030.09320.87
5.5.270.0200.07020.86
5.5.260.0170.07320.84
5.5.250.0030.07320.49
5.5.240.4300.03020.18
5.4.450.0370.04319.14
5.4.440.0170.05319.41
5.4.430.0330.04319.40
5.4.420.0530.04719.25
5.4.410.0600.03319.00
5.4.400.0270.03719.09
5.4.390.0330.05019.25
5.4.380.0370.05018.68
5.4.370.0470.06018.67
5.4.360.0430.04318.57
5.4.350.0470.05718.64
5.4.340.0300.05318.64
5.4.320.0050.03712.46
5.4.310.0070.03712.46
5.4.300.0060.03712.46
5.4.290.0110.03512.46
5.4.280.0080.04512.35
5.4.270.0060.03512.36
5.4.260.0050.04712.35
5.4.250.0070.03912.36
5.4.240.0110.03512.36
5.4.230.0080.03712.34
5.4.220.0100.03812.34
5.4.210.0060.03512.34
5.4.200.0040.04012.35
5.4.190.0040.03812.34
5.4.180.0070.03512.34
5.4.170.0040.03812.35
5.4.160.0060.03612.35
5.4.150.0070.03612.34
5.4.140.0070.03712.03
5.4.130.0090.03212.02
5.4.120.0060.03511.97
5.4.110.0070.03411.97
5.4.100.0110.03111.97
5.4.90.0090.03411.97
5.4.80.0080.03511.97
5.4.70.0090.03111.97
5.4.60.0060.03711.96
5.4.50.0040.03811.96
5.4.40.0070.03311.95
5.4.30.0050.03711.95
5.4.20.0090.04111.95
5.4.10.0070.03611.96
5.4.00.0050.03511.44
5.3.290.0050.04512.80
5.3.280.0050.03912.71
5.3.270.0020.04312.72
5.3.260.0080.03712.72
5.3.250.0050.03812.72
5.3.240.0050.03912.72
5.3.230.0050.03912.70
5.3.220.0070.03612.68
5.3.210.0080.03712.68
5.3.200.0070.04312.68
5.3.190.0070.04812.68
5.3.180.0060.03612.67
5.3.170.0040.03912.67
5.3.160.0080.03512.68
5.3.150.0070.03712.67
5.3.140.0080.03512.66
5.3.130.0100.04312.66
5.3.120.0060.04112.65
5.3.110.0070.03912.65
5.3.100.0100.03312.12
5.3.90.0100.03312.08
5.3.80.0070.03612.08
5.3.70.0070.03612.08
5.3.60.0110.03212.07
5.3.50.0070.03912.00
5.3.40.0030.04412.00
5.3.30.0080.03311.94
5.3.20.0060.03611.73
5.3.10.0060.03811.70
5.3.00.0030.03911.68
5.2.170.0080.0379.18
5.2.160.0060.0309.18
5.2.150.0060.0299.18
5.2.140.0060.0299.18
5.2.130.0070.0279.14
5.2.120.0080.0269.14
5.2.110.0060.0299.15
5.2.100.0040.0299.14
5.2.90.0090.0259.14
5.2.80.0040.0309.14
5.2.70.0080.0349.14
5.2.60.0040.0309.09
5.2.50.0040.0309.06
5.2.40.0090.0249.04
5.2.30.0030.0319.02
5.2.20.0030.0309.00
5.2.10.0040.0288.93
5.2.00.0070.0278.79
5.1.60.0030.0268.07
5.1.50.0010.0288.07
5.1.40.0020.0298.05
5.1.30.0050.0258.40
5.1.20.0050.0268.42
5.1.10.0060.0248.15
5.1.00.0020.0288.14
5.0.50.0030.0216.63
5.0.40.0040.0196.48
5.0.30.0050.0296.30
5.0.20.0040.0196.27
5.0.10.0020.0206.25
5.0.00.0010.0326.24
4.4.90.0030.0154.78
4.4.80.0020.0154.76
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0010.0274.70
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0020.0174.85
4.4.00.0050.0224.76
4.3.110.0020.0174.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0040.0124.63
4.3.60.0040.0134.63
4.3.50.0030.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.29
4.3.20.0010.0173.27
4.3.10.0040.0163.22
4.3.00.0000.02014.93

preferences:
39.11 ms | 401 KiB | 5 Q