3v4l.org

run code in 300+ PHP versions simultaneously
<?php $country_codes = array('UK','IRL'); $country_list = array( 'ALB' => 'Albania', 'AND' => 'Andorra', 'ARM' => 'Armenia', 'AUT' => 'Austria', 'AZE' => 'Azerbaijan', 'BLR' => 'Belarus', 'BEL' => 'Belgium', 'BIH' => 'Bosnia and Herzegovina', 'BGR' => 'Bulgaria', 'HRV' => 'Croatia', 'CYP' => 'Cyprus', 'CZE' => 'Czech Republic', 'DNK' => 'Denmark', 'EST' => 'Estonia', 'FIN' => 'Finland', 'FRA' => 'France', 'GEO' => 'Georgia', 'DEU' => 'Germany', 'GRC' => 'Greece', 'HUN' => 'Hungary', 'ISL' => 'Iceland', 'IRL' => 'Ireland', 'ITA' => 'Italy', 'KAZ' => 'Kazakhstan', 'RKS' => 'Kosovo', 'LVA' => 'Latvia', 'LIE' => 'Liechtenstein', 'LTU' => 'Lithuania', 'LUX' => 'Luxembourg', 'MLT' => 'Malta', 'MDA' => 'Moldova', 'MCO' => 'Monaco', 'MNE' => 'Montenegro', 'NLD' => 'Netherlands', 'MKD' => 'North Macedonia', 'NOR' => 'Norway', 'POL' => 'Poland', 'PRT' => 'Portugal', 'ROU' => 'Romania', 'RUS' => 'Russia', 'SMR' => 'San Marino', 'SRB' => 'Serbia', 'SVK' => 'Slovakia', 'SVN' => 'Slovenia', 'ESP' => 'Spain', 'SWE' => 'Sweden', 'CHE' => 'Switzerland', 'TUR' => 'Turkey', 'UKR' => 'Ukraine', 'UK' => 'UK', ); $filtered_countries = array_intersect_key($country_list, array_flip($country_codes)); print_r($filtered_countries);

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.00418.18
8.3.50.0170.00318.18
8.3.40.0090.00618.67
8.3.30.0000.01418.64
8.3.20.0090.00020.35
8.3.10.0040.00421.96
8.3.00.0050.00322.39
8.2.180.0030.01318.31
8.2.170.0090.00622.96
8.2.160.0070.00722.03
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.04
8.2.110.0060.00322.30
8.2.100.0040.00817.72
8.2.90.0080.00017.84
8.2.80.0080.00018.98
8.2.70.0000.00817.79
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0080.00021.03
8.2.30.0000.00819.08
8.2.20.0040.00417.94
8.2.10.0000.00719.39
8.2.00.0070.00019.13
8.1.280.0120.00325.92
8.1.270.0130.00320.65
8.1.260.0000.00826.35
8.1.250.0040.01128.09
8.1.240.0040.00422.53
8.1.230.0090.00320.85
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00816.88
8.1.180.0090.00019.07
8.1.170.0000.00818.59
8.1.160.0070.00019.00
8.1.150.0000.00718.89
8.1.140.0000.00720.29
8.1.130.0000.00717.32
8.1.120.0030.00417.48
8.1.110.0000.00817.46
8.1.100.0000.00717.43
8.1.90.0030.00517.43
8.1.80.0000.01117.29
8.1.70.0000.00717.44
8.1.60.0000.00817.62
8.1.50.0000.00917.40
8.1.40.0040.00717.43
8.1.30.0000.00817.54
8.1.20.0030.00517.60
8.1.10.0040.00417.46
8.1.00.0040.00417.35
8.0.300.0000.00819.95
8.0.290.0030.00516.58
8.0.280.0030.00318.39
8.0.270.0000.00717.19
8.0.260.0070.00016.78
8.0.250.0070.00016.95
8.0.240.0070.00316.93
8.0.230.0070.00016.75
8.0.220.0050.00316.71
8.0.210.0000.00716.80
8.0.200.0030.00316.87
8.0.190.0070.00016.81
8.0.180.0040.00416.91
8.0.170.0050.00316.95
8.0.160.0050.00316.81
8.0.150.0000.00716.86
8.0.140.0040.00416.71
8.0.130.0000.00613.36
8.0.120.0000.00816.76
8.0.110.0000.00716.84
8.0.100.0000.00716.84
8.0.90.0030.00616.82
8.0.80.0020.01316.83
8.0.70.0000.00716.80
8.0.60.0070.00016.80
8.0.50.0040.00416.72
8.0.30.0090.00917.22
8.0.20.0130.00616.92
8.0.10.0040.00416.84
8.0.00.0120.00616.54
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0030.00316.54
7.4.290.0050.00316.45
7.4.280.0040.00416.54
7.4.270.0030.00316.35
7.4.260.0030.00313.24
7.4.250.0030.00316.45
7.4.240.0040.00416.52
7.4.230.0000.00716.46
7.4.220.0060.00216.28
7.4.210.0110.00316.49
7.4.200.0070.00016.62
7.4.130.0140.01116.43
7.4.120.0090.01616.48
7.4.110.0150.00916.29
7.4.100.0080.01616.59
7.4.90.0090.00916.52
7.4.80.0120.00919.39
7.4.70.0030.01316.40
7.4.60.0090.00916.57
7.4.50.0030.01016.38
7.4.40.0040.01316.33
7.4.00.0060.01014.71
7.3.330.0020.00516.10
7.3.320.0000.00513.05
7.3.310.0050.00216.21
7.3.300.0000.00716.07
7.3.290.0050.00816.23
7.3.280.0110.01116.10
7.3.260.0130.00716.24
7.3.240.0100.00616.34
7.3.230.0030.01216.10
7.3.210.0100.01316.08
7.3.200.0150.00616.17
7.3.190.0060.00916.39
7.3.180.0100.00616.26
7.3.170.0090.00616.28
7.3.160.0110.00416.48
7.3.100.0000.01614.83
7.3.90.0030.01014.64
7.3.80.0070.00714.72
7.3.70.0070.00614.59
7.3.60.0030.01014.36
7.3.50.0080.00814.45
7.3.40.0070.00614.32
7.3.30.0030.01014.33
7.3.20.0090.00614.65
7.3.10.0070.00714.55
7.3.00.0030.01414.71
7.2.330.0160.00016.66
7.2.320.0140.00316.56
7.2.310.0150.00916.61
7.2.300.0030.01316.59
7.2.290.0080.00816.27
7.2.230.0150.00315.06
7.2.220.0030.01114.84
7.2.210.0090.00614.87
7.2.200.0050.01014.75
7.2.190.0030.01014.34
7.2.180.0030.01214.69
7.2.170.0090.00614.62
7.2.160.0070.00714.80
7.2.150.0100.00515.06
7.2.140.0000.01414.55
7.2.130.0070.00814.83
7.2.120.0090.01214.97
7.2.110.0060.01214.95
7.2.100.0070.01314.93
7.2.90.0160.00314.65
7.2.80.0100.00914.94
7.2.70.0100.01015.00
7.2.60.0100.00614.97
7.2.50.0000.01714.97
7.2.40.0070.00914.58
7.2.30.0110.00614.87
7.2.20.0120.00315.06
7.2.10.0100.00914.97
7.2.00.0000.02114.72
7.1.320.0090.00513.99
7.1.310.0060.00613.93
7.1.300.0090.00413.80
7.1.290.0110.00313.87
7.1.280.0100.01013.73
7.1.270.0070.00713.61
7.1.260.0070.01013.83
7.1.250.0060.01013.87

preferences:
58.32 ms | 400 KiB | 5 Q