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 $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)
8.3.60.0070.00716.25
8.3.50.0150.00521.98
8.3.40.0140.00318.67
8.3.30.0030.01018.98
8.3.20.0040.00420.14
8.3.10.0000.00723.69
8.3.00.0000.00819.68
8.2.180.0060.01116.38
8.2.170.0110.00422.96
8.2.160.0110.00820.38
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0040.00421.01
8.2.110.0060.00322.02
8.2.100.0120.00017.84
8.2.90.0090.00019.05
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0030.00618.09
8.2.30.0000.00718.23
8.2.20.0000.00917.68
8.2.10.0000.00818.18
8.2.00.0070.00017.62
8.1.280.0110.00725.92
8.1.270.0060.00323.88
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00022.24
8.1.230.0080.00419.10
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0120.00417.10
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0040.00422.01
8.1.150.0040.00420.27
8.1.140.0040.00417.46
8.1.130.0000.00717.70
8.1.120.0000.00717.44
8.1.110.0040.00417.37
8.1.100.0040.00417.46
8.1.90.0030.00317.38
8.1.80.0040.00417.41
8.1.70.0030.00317.34
8.1.60.0040.00417.47
8.1.50.0030.00617.45
8.1.40.0040.00417.42
8.1.30.0040.00417.65
8.1.20.0040.00417.48
8.1.10.0040.00417.45
8.1.00.0030.00517.36
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.31
8.0.270.0100.00017.26
8.0.260.0000.00617.22
8.0.250.0030.00316.86
8.0.240.0070.00016.90
8.0.230.0040.00417.00
8.0.220.0030.00316.86
8.0.210.0000.00716.93
8.0.200.0030.00316.81
8.0.190.0000.01117.02
8.0.180.0040.00416.88
8.0.170.0040.00416.91
8.0.160.0040.00416.77
8.0.150.0040.00416.71
8.0.140.0070.00016.86
8.0.130.0060.00013.36
8.0.120.0000.00816.84
8.0.110.0000.00716.90
8.0.100.0050.00216.89
8.0.90.0000.00716.88
8.0.80.0060.01716.84
8.0.70.0050.00316.91
8.0.60.0040.00416.78
8.0.50.0000.00816.90
8.0.30.0100.01017.15
8.0.20.0100.00917.40
8.0.10.0030.00316.83
8.0.00.0110.00616.77
7.4.330.0000.00615.00
7.4.320.0030.00316.50
7.4.300.0030.00316.52
7.4.290.0030.00516.46
7.4.280.0040.00416.60
7.4.270.0000.00716.61
7.4.260.0030.00516.58
7.4.250.0000.00716.52
7.4.240.0020.00516.57
7.4.230.0030.00316.61
7.4.220.0140.00316.63
7.4.210.0070.00716.61
7.4.200.0040.00416.31
7.4.160.0070.01016.33
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0080.01216.50
7.4.120.0090.00816.48
7.4.110.0100.01016.31
7.4.100.0040.01316.36
7.4.90.0110.00816.44
7.4.80.0120.00619.39
7.4.70.0060.01616.36
7.4.60.0120.00816.40
7.4.50.0050.00316.34
7.4.40.0090.01216.40
7.4.30.0100.00616.58
7.4.00.0120.00315.15
7.3.330.0030.00313.21
7.3.320.0000.00513.11
7.3.310.0070.00016.41
7.3.300.0030.00316.21
7.3.290.0040.01116.35
7.3.280.0120.00816.38
7.3.270.0030.01717.40
7.3.260.0090.00916.29
7.3.250.0100.00816.47
7.3.240.0070.01016.32
7.3.230.0100.01116.39
7.3.210.0030.01316.22
7.3.200.0040.01119.39
7.3.190.0110.01116.56
7.3.180.0000.01616.22
7.3.170.0060.00916.27
7.3.160.0030.01316.30
7.3.120.0060.00614.82
7.3.10.0100.00716.56
7.3.00.0100.00716.38
7.2.330.0070.01116.53
7.2.320.0100.00716.60
7.2.310.0070.01416.69
7.2.300.0050.01016.61
7.2.290.0060.00916.50
7.2.130.0030.01017.00
7.2.120.0110.00716.71
7.2.110.0070.01016.71
7.2.100.0030.01017.02
7.2.90.0030.01017.02
7.2.80.0070.00716.90
7.2.70.0030.01416.75
7.2.60.0080.00416.82
7.2.50.0070.00716.68
7.2.40.0150.00016.97
7.2.30.0030.00716.59
7.2.20.0000.01416.96
7.2.10.0080.00617.02
7.2.00.0040.00918.28
7.1.250.0060.00615.70
7.1.100.0840.01016.14
7.1.70.0000.00716.93
7.1.60.0140.01019.70
7.1.50.0060.01316.85
7.1.00.0100.07022.46
7.0.200.0000.01016.73
7.0.140.0000.07722.09
7.0.60.0100.08019.85
7.0.50.0030.06017.81
7.0.40.0130.06720.05
7.0.30.0270.04720.21
7.0.20.0200.06020.33
7.0.10.0370.07019.99
7.0.00.0100.07320.09
5.6.280.0130.08321.15
5.6.210.0100.07720.75
5.6.200.0130.05718.19
5.6.190.0100.05020.28
5.6.180.0030.05020.67
5.6.170.0270.06320.33
5.6.160.0030.04320.38
5.6.150.0030.04718.21
5.6.140.0030.04018.08
5.6.130.0100.08318.14
5.6.120.0030.05721.14
5.6.110.0170.07020.89
5.6.100.0100.08020.95
5.6.90.0100.08021.00
5.6.80.0070.07720.40
5.6.70.3770.04020.45
5.5.350.0000.03320.42
5.5.340.0070.03717.89
5.5.330.0030.04020.13
5.5.320.0300.07720.29
5.5.310.0230.08020.29
5.5.300.0070.08718.02
5.5.290.0130.04017.95
5.5.280.0030.08320.77
5.5.270.0100.06320.88
5.5.260.0170.07320.87
5.5.250.0100.07320.58
5.5.240.0130.03320.03
5.4.450.0670.03719.41
5.4.440.0300.04743.92
5.4.430.0330.04043.91
5.4.420.0370.03743.90
5.4.410.0370.04343.90
5.4.400.0470.03743.89
5.4.390.0200.05343.87
5.4.380.0070.05718.63
5.4.370.0170.05018.53
5.4.360.0130.04318.50
5.4.350.0100.06318.59
5.4.340.0170.04318.68
5.4.320.0060.03812.46
5.4.310.0080.04012.46
5.4.300.0090.03912.46
5.4.290.0070.03912.45
5.4.280.0030.03712.35
5.4.270.0050.04112.36
5.4.260.0090.03812.36
5.4.250.0070.03712.35
5.4.240.0070.04212.35
5.4.230.0030.04012.35
5.4.220.0050.03712.34
5.4.210.0040.03712.34
5.4.200.0050.03812.34
5.4.190.0080.03412.34
5.4.180.0050.03612.34
5.4.170.0070.03812.35
5.4.160.0080.04312.35
5.4.150.0050.03612.34
5.4.140.0080.03512.03
5.4.130.0040.03712.02
5.4.120.0050.03511.97
5.4.110.0030.03811.97
5.4.100.0090.03611.97
5.4.90.0100.03411.97
5.4.80.0060.03611.97
5.4.70.0070.03311.97
5.4.60.0070.03411.97
5.4.50.0070.03311.96
5.4.40.0050.03511.96
5.4.30.0060.03511.95
5.4.20.0060.03611.95
5.4.10.0040.03711.95
5.4.00.0040.03811.45
5.3.290.0070.04412.80
5.3.280.0110.03412.71
5.3.270.0030.04112.72
5.3.260.0110.04012.72
5.3.250.0040.03912.71
5.3.240.0090.04312.72
5.3.230.0090.03612.71
5.3.220.0070.03912.68
5.3.210.0110.04212.68
5.3.200.0030.04712.68
5.3.190.0080.04012.68
5.3.180.0080.03512.67
5.3.170.0030.03912.67
5.3.160.0030.04112.67
5.3.150.0060.03712.67
5.3.140.0060.03612.66
5.3.130.0070.04112.66
5.3.120.0060.04012.65
5.3.110.0080.03812.66
5.3.100.0100.03312.12
5.3.90.0050.04012.08
5.3.80.0060.03912.08
5.3.70.0070.03512.07
5.3.60.0020.04012.07
5.3.50.0060.03612.00
5.3.40.0080.03512.00
5.3.30.0070.03411.95
5.3.20.0090.03211.73
5.3.10.0060.03611.70
5.3.00.0010.04011.68
5.2.170.0050.0329.18
5.2.160.0020.0329.18
5.2.150.0040.0319.18
5.2.140.0040.0319.18
5.2.130.0030.0329.13
5.2.120.0060.0279.14
5.2.110.0050.0289.14
5.2.100.0050.0289.14
5.2.90.0050.0289.14
5.2.80.0040.0339.14
5.2.70.0090.0269.14
5.2.60.0020.0339.09
5.2.50.0040.0309.06
5.2.40.0040.0359.04
5.2.30.0050.0319.01
5.2.20.0070.0269.00
5.2.10.0040.0298.93
5.2.00.0050.0308.79
5.1.60.0040.0308.07
5.1.50.0070.0218.07
5.1.40.0040.0358.05
5.1.30.0030.0268.40
5.1.20.0040.0328.42
5.1.10.0080.0278.14
5.1.00.0050.0288.15
5.0.50.0040.0216.63
5.0.40.0030.0236.48
5.0.30.0040.0336.30
5.0.20.0050.0186.26
5.0.10.0040.0206.25
5.0.00.0060.0296.24
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0030.0174.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0254.75
4.3.110.0040.0184.67
4.3.100.0040.0184.66
4.3.90.0040.0174.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0234.63
4.3.50.0050.0194.63
4.3.40.0020.0244.54
4.3.30.0040.0163.29
4.3.20.0010.0193.27
4.3.10.0020.0163.22
4.3.00.0100.01343.86

preferences:
44.69 ms | 401 KiB | 5 Q