3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = [ ['country_code' => 'US', 'country_name' => 'United States'], ['country_code' => 'UK', 'country_name' => 'United Kingdom'], ]; foreach ($result as $row) { printf( "<option value=\"%s\">%s</option>\n", trim(htmlentities($row['country_code'])), trim(htmlentities($row['country_name'])) ); }

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.4.10.0060.00322.30
8.3.140.0070.01117.07
8.3.130.0140.00718.29
8.3.120.0030.00620.74
8.3.110.0080.00020.94
8.3.100.0140.00018.50
8.3.90.0040.01126.77
8.3.80.0090.00019.36
8.3.70.0060.01316.63
8.3.60.0140.00018.55
8.3.50.0110.00623.57
8.3.40.0140.00718.71
8.3.30.0140.00018.57
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.260.0040.00418.51
8.2.250.0070.00716.92
8.2.240.0040.00417.30
8.2.230.0080.00022.58
8.2.220.0000.00837.54
8.2.210.0060.00326.77
8.2.200.0030.00718.88
8.2.190.0090.00916.58
8.2.180.0070.01025.92
8.2.170.0180.00018.71
8.2.160.0090.00422.96
8.2.150.0080.00025.66
8.2.140.0140.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00321.18
8.2.110.0000.01021.18
8.2.100.0040.00817.97
8.2.90.0050.00319.89
8.2.80.0080.00020.59
8.2.70.0000.00817.75
8.2.60.0050.00317.63
8.2.50.0040.00417.75
8.2.40.0060.00317.63
8.2.30.0040.00418.01
8.2.20.0040.00418.15
8.2.10.0000.00719.25
8.2.00.0050.00319.25
8.1.310.0170.00018.56
8.1.300.0060.00318.08
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0070.00422.75
8.1.220.0040.00417.77
8.1.210.0050.00519.03
8.1.200.0030.00517.36
8.1.190.0030.00617.66
8.1.180.0000.00818.10
8.1.170.0090.00020.09
8.1.160.0000.00718.78
8.1.150.0090.00018.94
8.1.140.0000.00718.84
8.1.130.0000.00820.21
8.1.120.0000.00717.54
8.1.110.0000.00817.44
8.1.100.0000.00717.51
8.1.90.0040.00417.37
8.1.80.0040.00717.45
8.1.70.0030.00317.51
8.1.60.0000.00917.61
8.1.50.0030.00917.54
8.1.40.0080.00017.45
8.1.30.0030.00617.49
8.1.20.0030.00617.53
8.1.10.0100.00017.53
8.1.00.0000.00817.42
8.0.300.0050.00320.16
8.0.290.0000.00916.63
8.0.280.0000.00718.31
8.0.270.0070.00017.95
8.0.260.0000.00618.50
8.0.250.0070.00016.94
8.0.240.0000.00716.94
8.0.230.0070.00017.00
8.0.220.0000.00616.89
8.0.210.0050.00316.92
8.0.200.0050.00216.95
8.0.190.0040.00416.86
8.0.180.0050.00316.80
8.0.170.0050.00316.75
8.0.160.0000.00716.93
8.0.150.0040.00416.89
8.0.140.0000.00716.89
8.0.130.0000.00713.25
8.0.120.0050.00216.85
8.0.110.0040.00416.89
8.0.100.0070.00016.77
8.0.90.0000.00716.80
8.0.80.0060.01216.84
8.0.70.0050.00216.84
8.0.60.0040.00416.82
8.0.50.0040.00416.93
8.0.30.0060.01116.96
8.0.20.0140.00517.05
8.0.10.0080.00016.91
8.0.00.0100.01016.74
7.4.330.0000.00515.55
7.4.320.0000.00616.57
7.4.300.0000.00616.51
7.4.290.0080.00016.44
7.4.280.0070.00316.61
7.4.270.0070.00016.51
7.4.260.0050.00013.19
7.4.250.0000.00716.43
7.4.240.0030.00316.42
7.4.230.0030.00316.27
7.4.220.0040.00316.39
7.4.210.0110.00716.55
7.4.200.0040.00416.44
7.4.130.0110.01016.37
7.4.120.0130.00816.46
7.4.110.0090.01016.56
7.4.100.0100.00616.63
7.4.90.0130.00716.43
7.4.80.0110.00519.39
7.4.70.0100.00716.57
7.4.60.0110.01116.23
7.4.50.0080.00816.45
7.4.40.0110.01216.50
7.4.30.0110.01116.57
7.4.20.0120.00916.39
7.4.10.0080.00816.26
7.4.00.0080.00816.47
7.3.330.0070.00016.15
7.3.320.0030.00313.03
7.3.310.0070.00016.26
7.3.300.0000.00716.28
7.3.290.0080.00816.27
7.3.280.0040.01116.23
7.3.260.0120.00616.21
7.3.240.0090.00816.38
7.3.230.0060.01816.63
7.3.210.0160.00016.34
7.3.200.0100.00716.31
7.3.190.0060.01016.40
7.3.180.0080.00816.25
7.3.170.0080.00616.18
7.3.160.0130.01016.57
7.3.150.0080.00816.35
7.3.140.0090.00616.41
7.3.130.0150.00716.50
7.3.120.0160.00316.30
7.3.110.0100.00716.34
7.3.100.0150.00316.51
7.3.90.0130.00316.33
7.3.80.0060.01016.25
7.3.70.0110.00516.28
7.3.60.0110.00516.48
7.3.50.0100.00516.30
7.3.40.0030.01316.51
7.3.30.0080.00816.37
7.3.20.0550.00316.29
7.3.10.0080.00816.26
7.3.00.0140.00316.30
7.2.330.0120.00616.49
7.2.320.0070.01016.68
7.2.310.0050.01216.77
7.2.300.0030.01316.62
7.2.290.0070.01716.75
7.2.280.0190.00516.58
7.2.270.0100.00816.64
7.2.260.0150.00416.60
7.2.250.0000.01816.57
7.2.240.0080.00816.52
7.2.230.0080.00816.42
7.2.220.0080.01016.40
7.2.210.0070.01016.57
7.2.200.0030.01316.68
7.2.190.0170.00016.57
7.2.180.0050.01116.49
7.2.170.0050.01116.57
7.2.160.0170.00616.61
7.2.150.0070.01316.45
7.2.140.0180.00316.71
7.2.130.0090.00916.64
7.2.120.0090.00916.68
7.2.110.0130.00616.57
7.2.100.0110.00916.71
7.2.90.0060.01216.66
7.2.80.0150.00416.63
7.2.70.0110.00816.56
7.2.60.0120.00616.75
7.2.50.0120.00616.82
7.2.40.0120.00416.60
7.2.30.0140.00416.58
7.2.20.0080.00816.51
7.2.10.0050.01116.48
7.2.00.0120.00516.77

preferences:
100.78 ms | 403 KiB | 5 Q