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") ; asort($ceu) ; 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.0140.00016.50
8.3.50.0150.01021.93
8.3.40.0040.01118.67
8.3.30.0110.00418.91
8.3.20.0070.00020.21
8.3.10.0040.00423.71
8.3.00.0040.00419.01
8.2.180.0030.01316.32
8.2.170.0090.01222.96
8.2.160.0070.01020.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00022.25
8.2.110.0080.00022.08
8.2.100.0120.00017.78
8.2.90.0090.00019.17
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00619.94
8.2.30.0040.00418.10
8.2.20.0080.00017.67
8.2.10.0000.00718.10
8.2.00.0000.00717.66
8.1.280.0060.00925.92
8.1.270.0050.00323.97
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.70
8.1.230.0070.00319.16
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0030.00618.89
8.1.170.0050.00318.20
8.1.160.0040.00421.88
8.1.150.0040.00418.63
8.1.140.0030.00617.38
8.1.130.0030.00317.82
8.1.120.0050.00217.50
8.1.110.0040.00417.54
8.1.100.0000.00717.40
8.1.90.0000.00717.46
8.1.80.0000.00717.52
8.1.70.0000.00717.41
8.1.60.0000.00917.60
8.1.50.0030.00517.40
8.1.40.0040.00417.47
8.1.30.0000.00917.56
8.1.20.0060.00317.62
8.1.10.0040.00417.39
8.1.00.0020.00517.35
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0000.00718.45
8.0.270.0000.00717.25
8.0.260.0000.00617.25
8.0.250.0000.00716.96
8.0.240.0000.00716.83
8.0.230.0030.00316.93
8.0.220.0030.00316.86
8.0.210.0000.00716.87
8.0.200.0000.00716.99
8.0.190.0000.00916.88
8.0.180.0000.00816.81
8.0.170.0030.00516.90
8.0.160.0000.00816.84
8.0.150.0000.00716.87
8.0.140.0030.00616.84
8.0.130.0000.00613.33
8.0.120.0000.00816.84
8.0.110.0040.00416.90
8.0.100.0070.00016.92
8.0.90.0000.00716.89
8.0.80.0070.00816.95
8.0.70.0000.00716.91
8.0.60.0070.00016.67
8.0.50.0000.00816.89
8.0.30.0100.01016.86
8.0.20.0080.01117.40
8.0.10.0040.00416.99
8.0.00.0070.01416.65
7.4.330.0030.00315.00
7.4.320.0000.00716.52
7.4.300.0030.00316.45
7.4.290.0030.00316.39
7.4.280.0080.00016.48
7.4.270.0030.00316.45
7.4.260.0000.00716.43
7.4.250.0040.00416.44
7.4.240.0020.00616.48
7.4.230.0030.00316.63
7.4.220.0060.01516.60
7.4.210.0050.01016.46
7.4.200.0040.00416.39
7.4.190.0070.00016.75
7.4.160.0120.01216.49
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0090.00816.50
7.4.120.0070.01016.46
7.4.110.0090.00916.53
7.4.100.0120.01216.37
7.4.90.0150.00316.44
7.4.80.0130.00819.39
7.4.70.0120.01016.28
7.4.60.0100.01016.29
7.4.50.0050.00316.46
7.4.40.0100.00716.23
7.4.30.0160.00716.57
7.4.00.0060.01114.59
7.3.330.0020.00213.11
7.3.320.0000.00513.04
7.3.310.0000.00716.27
7.3.300.0040.00416.22
7.3.290.0120.00616.31
7.3.280.0100.00816.30
7.3.270.0070.01117.40
7.3.260.0060.01216.40
7.3.250.0080.01016.31
7.3.240.0100.00716.28
7.3.230.0070.01016.54
7.3.210.0090.00916.50
7.3.200.0110.00719.39
7.3.190.0100.01016.43
7.3.180.0130.00416.66
7.3.170.0040.01216.45
7.3.160.0000.01616.25
7.3.120.0070.00714.92
7.3.10.0110.00316.69
7.3.00.0070.00916.58
7.2.330.0050.01316.68
7.2.320.0090.00916.64
7.2.310.0160.00416.71
7.2.300.0100.00616.50
7.2.290.0060.01716.69
7.2.130.0070.00717.00
7.2.120.0050.00916.81
7.2.110.0050.00716.87
7.2.100.0080.00716.95
7.2.90.0040.00916.86
7.2.80.0050.01016.81
7.2.70.0090.00716.74
7.2.60.0040.01116.80
7.2.50.0060.00716.68
7.2.40.0040.01116.97
7.2.30.0070.00716.90
7.2.20.0040.01016.83
7.2.10.0050.01116.93
7.2.00.0050.01017.32
7.1.250.0040.00815.54
7.1.240.0100.00715.85
7.1.230.0130.00015.83
7.1.220.0030.01415.78
7.1.210.0000.01015.47
7.1.200.0080.00415.56
7.1.190.0080.00415.80
7.1.180.0070.00315.51
7.1.170.0000.01015.63
7.1.160.0110.00315.85
7.1.150.0000.01315.96
7.1.140.0040.00715.89
7.1.130.0090.00315.95
7.1.120.0100.00315.92
7.1.110.0060.00615.77
7.1.100.0030.00817.11
7.1.90.0040.01115.75
7.1.80.0070.00715.74
7.1.70.0040.00716.23
7.1.60.0030.01717.52
7.1.50.0020.01416.46
7.1.40.0070.00315.75
7.1.30.0120.00615.65
7.1.20.0050.00515.77
7.1.10.0070.00315.74
7.1.00.0070.04019.13
7.0.330.0070.00715.45
7.0.320.0090.00615.42
7.0.310.0090.00315.40
7.0.300.0060.00615.47
7.0.290.0130.00015.32
7.0.280.0090.00615.09
7.0.270.0030.00915.32
7.0.260.0040.00815.32
7.0.250.0000.00915.06
7.0.240.0070.00715.51
7.0.230.0130.00015.38
7.0.220.0040.00715.52
7.0.210.0030.00715.57
7.0.200.0020.00715.94
7.0.190.0000.01215.28
7.0.180.0030.00715.11
7.0.170.0030.01015.51
7.0.160.0080.00415.33
7.0.150.0070.00315.31
7.0.140.0020.04218.74
7.0.130.0030.01015.57
7.0.120.0070.00315.59
7.0.110.0040.00415.56
7.0.100.0030.03817.69
7.0.90.0050.05017.64
7.0.80.0130.04217.57
7.0.70.0100.04217.65
7.0.60.0100.02717.69
7.0.50.0170.04317.85
7.0.40.0110.04016.83
7.0.30.0050.04816.72
7.0.20.0100.04016.75
7.0.10.0070.03916.75
7.0.00.0100.04116.65
5.6.380.0060.00614.10
5.6.370.0040.01014.38
5.6.360.0060.00314.12
5.6.350.0070.00714.29
5.6.340.0060.00314.27
5.6.330.0090.00614.28
5.6.320.0000.01114.44
5.6.310.0040.01114.27
5.6.300.0100.00013.99
5.6.290.0100.00314.58
5.6.280.0030.00814.70
5.6.270.0030.01214.38
5.6.260.0000.01114.25
5.6.250.0070.02717.43
5.6.240.0120.02217.39
5.6.230.0020.05117.56
5.6.220.0070.02517.39
5.6.210.0050.02917.53
5.6.200.0080.03817.71
5.6.190.0020.03817.66
5.6.180.0140.03717.74
5.6.170.0100.02217.60
5.6.160.0100.03217.64
5.6.150.0030.03317.87
5.6.140.0090.03617.69
5.6.130.0030.02817.72
5.6.120.0110.03517.63
5.6.110.0100.01817.74
5.6.100.0070.04517.64
5.6.90.0000.04617.57
5.6.80.0060.03317.29
5.6.70.0030.05017.27
5.6.60.0090.04017.33
5.6.50.0050.04517.36
5.6.40.0070.04217.38
5.6.30.0040.04017.27
5.6.20.0060.04117.35
5.6.10.0100.02717.27
5.6.00.0130.03317.25
5.5.380.0050.02515.77
5.5.370.0040.02715.84
5.5.360.0060.04115.87
5.5.350.0030.03015.80
5.5.340.0050.04415.97
5.5.330.0050.04316.04
5.5.320.0100.03315.99
5.5.310.0080.04316.03
5.5.300.0080.03316.01
5.5.290.0060.04216.04
5.5.280.0120.04216.00
5.5.270.0080.04015.98
5.5.260.0100.02815.98
5.5.250.0100.04515.90
5.5.240.0060.04115.73
5.5.230.0070.04215.69
5.5.220.0080.04015.73
5.5.210.0070.04015.66
5.5.200.0050.03615.71
5.5.190.0020.04515.69
5.5.180.0090.03915.68
5.5.170.0000.01111.18
5.5.160.0040.04415.63
5.5.150.0070.04015.70
5.5.140.0070.04015.66
5.5.130.0040.04415.65
5.5.120.0050.04615.71
5.5.110.0070.04215.66
5.5.100.0050.04415.63
5.5.90.0060.03915.64
5.5.80.0010.04815.67
5.5.70.0070.03215.63
5.5.60.0040.03215.66
5.5.50.0070.03815.56
5.5.40.0060.03715.60
5.5.30.0100.03915.65
5.5.20.0070.03815.60
5.5.10.0070.04015.65
5.5.00.0050.04415.61
5.4.450.0070.04015.30
5.4.440.0110.03615.28
5.4.430.0060.02915.24
5.4.420.0040.04415.29
5.4.410.0080.04015.10
5.4.400.0050.03815.00
5.4.390.0050.03415.10
5.4.380.0090.03914.99
5.4.370.0030.02315.11
5.4.360.0000.04015.14
5.4.350.0080.03815.19
5.4.340.0070.03815.16
5.4.330.0030.00511.18
5.4.320.0030.02415.12
5.4.310.0020.03114.99
5.4.300.0070.03415.11
5.4.290.0080.03815.07
5.4.280.0100.02815.04
5.4.270.0100.03515.17
5.4.260.0030.03415.20
5.4.250.0060.03814.98
5.4.240.0060.02715.14
5.4.230.0080.02415.11
5.4.220.0030.04514.97
5.4.210.0020.02915.07
5.4.200.0060.02915.11
5.4.190.0100.03815.12
5.4.180.0080.02115.18
5.4.170.0030.04715.15
5.4.160.0060.03015.14
5.4.150.0060.04115.03
5.4.140.0000.03013.77
5.4.130.0080.02013.77
5.4.120.0070.03513.73
5.4.110.0090.02213.74
5.4.100.0050.03313.72
5.4.90.0060.03713.81
5.4.80.0040.02913.75
5.4.70.0030.03013.71
5.4.60.0090.03213.80
5.4.50.0050.02513.70
5.4.40.0080.03713.71
5.4.30.0030.02713.68
5.4.20.0020.03513.69
5.4.10.0100.04013.78
5.4.00.0050.03913.50
5.3.290.0030.02712.92
5.3.280.0070.02812.88
5.3.270.0020.02812.89
5.3.260.0070.03312.87
5.3.250.0060.03612.89
5.3.240.0080.02612.89
5.3.230.0050.04112.85
5.3.220.0060.04012.87
5.3.210.0090.03612.88
5.3.200.0090.03512.79
5.3.190.0030.03812.88
5.3.180.0070.04212.88
5.3.170.0050.03912.87
5.3.160.0120.03212.86
5.3.150.0030.04012.80
5.3.140.0070.03712.87
5.3.130.0080.03212.87
5.3.120.0070.04212.86
5.3.110.0100.02812.86
5.3.100.0070.02712.57
5.3.90.0050.04012.59
5.3.80.0060.03312.59
5.3.70.0030.04012.53
5.3.60.0040.04312.56
5.3.50.0110.02012.52
5.3.40.0050.02812.55
5.3.30.0080.03312.47
5.3.20.0020.04012.43
5.3.10.0080.03312.30
5.3.00.0000.04412.41
5.2.170.0030.03111.19
5.2.160.0080.03111.18
5.2.150.0050.02911.19
5.2.140.0060.02111.15
5.2.130.0080.02211.16
5.2.120.0060.03111.13
5.2.110.0070.03511.07
5.2.100.0050.01911.16
5.2.90.0050.01811.10
5.2.80.0080.01511.13
5.2.70.0050.03311.10
5.2.60.0120.01511.04
5.2.50.0030.02511.12
5.2.40.0030.02011.06
5.2.30.0050.02311.05
5.2.20.0080.02811.08
5.2.10.0030.03511.05
5.2.00.0030.03110.91
5.1.60.0060.01610.86
5.1.50.0020.03110.86
5.1.40.0050.01710.86
5.1.30.0050.01810.86
5.1.20.0050.01310.86
5.1.10.0080.02510.86
5.1.00.0030.02510.86
5.0.50.0020.01810.86
5.0.40.0070.01310.86
5.0.30.0050.02310.86
5.0.20.0050.02310.86
5.0.10.0020.01710.86
5.0.00.0020.03310.86
4.4.90.0030.01510.86
4.4.80.0070.01510.86
4.4.70.0020.01110.86
4.4.60.0020.01710.86
4.4.50.0020.01910.86
4.4.40.0000.01710.86
4.4.30.0020.01510.86
4.4.20.0020.01210.86
4.4.10.0000.01910.86
4.4.00.0050.01810.86
4.3.110.0050.01410.86
4.3.100.0030.01610.86
4.3.90.0020.01210.86
4.3.80.0030.02310.86
4.3.70.0030.01710.86
4.3.60.0000.02010.86
4.3.50.0050.01510.86
4.3.40.0000.02910.86
4.3.30.0020.02010.86
4.3.20.0030.01810.86
4.3.10.0050.01010.86
4.3.00.0000.01810.86

preferences:
38.38 ms | 401 KiB | 5 Q