3v4l.org

run code in 300+ PHP versions simultaneously
<?php function timezone_list() { static $timezones = null; if ($timezones === null) { $timezones = array(); $offsets = array(); $now = new DateTime(); foreach (DateTimeZone::listIdentifiers() as $timezone) { $now->setTimezone(new DateTimeZone($timezone)); $offsets[] = $offset = $now->getOffset(); $timezones[$timezone] = '(GMT ' . ($offset ? sprintf('%+03d:%02d', intval($offset / 3600), abs(intval($offset % 3600 / 60))) : '') . ') ' . str_replace(array("/", "_", "St "), array(", ", " ", "St. "), $timezone); } array_multisort($offsets, $timezones); } return $timezones; } print_r(timezone_list());

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.0160.00318.93
8.3.50.0110.01021.59
8.3.40.0100.01419.68
8.3.30.0070.01019.94
8.3.20.0060.00320.79
8.3.10.0090.00022.09
8.3.00.0060.00322.43
8.2.180.0130.00317.75
8.2.170.0030.01922.96
8.2.160.0000.01619.96
8.2.150.0060.00324.18
8.2.140.0000.00924.66
8.2.130.0160.00626.16
8.2.120.0040.00819.98
8.2.110.0060.00621.23
8.2.100.0070.00718.61
8.2.90.0050.00520.05
8.2.80.0030.00618.50
8.2.70.0090.00318.63
8.2.60.0030.00718.91
8.2.50.0040.00918.63
8.2.40.0030.00718.97
8.2.30.0030.00718.92
8.2.20.0040.00418.62
8.2.10.0000.00918.70
8.2.00.0080.00318.89
8.1.280.0160.01025.92
8.1.270.0030.00622.55
8.1.260.0120.00326.35
8.1.250.0090.00028.09
8.1.240.0030.00721.66
8.1.230.0060.00618.45
8.1.220.0060.00318.66
8.1.210.0090.00018.77
8.1.200.0100.00018.35
8.1.190.0070.00318.23
8.1.180.0040.00520.94
8.1.170.0030.00619.28
8.1.160.0000.00922.70
8.1.150.0040.00419.56
8.1.140.0060.00318.48
8.1.130.0060.00318.68
8.1.120.0000.00818.46
8.1.110.0030.00618.49
8.1.100.0000.00818.45
8.1.90.0040.00418.48
8.1.80.0000.00918.50
8.1.70.0000.00918.38
8.1.60.0030.00618.57
8.1.50.0000.01118.43
8.1.40.0000.00918.39
8.1.30.0000.01118.50
8.1.20.0060.00318.57
8.1.10.0060.00318.34
8.1.00.0060.00318.35
8.0.300.0030.01018.77
8.0.290.0100.00618.13
8.0.280.0040.00819.69
8.0.270.0030.00918.13
8.0.260.0040.00818.22
8.0.250.0000.01218.21
8.0.240.0030.01418.33
8.0.230.0030.00918.37
8.0.220.0030.00918.28
8.0.210.0000.01318.24
8.0.200.0040.00818.23
8.0.190.0000.01318.21
8.0.180.0070.00718.27
8.0.170.0030.01018.33
8.0.160.0030.01018.15
8.0.150.0030.01018.18
8.0.140.0060.00618.14
8.0.130.0000.01214.75
8.0.120.0070.00718.15
8.0.110.0030.01018.23
8.0.100.0030.01018.07
8.0.90.0030.01018.31
8.0.80.0070.01918.16
8.0.70.0000.01318.30
8.0.60.0000.01418.15
8.0.50.0000.01318.10
8.0.30.0110.01818.45
8.0.20.0130.01718.43
8.0.10.0000.01318.35
8.0.00.0140.01718.10
7.4.330.0000.01215.00
7.4.320.0040.00817.79
7.4.300.0040.00817.77
7.4.290.0000.01317.76
7.4.280.0060.00617.74
7.4.270.0000.01217.79
7.4.260.0030.01017.63
7.4.250.0070.00717.80
7.4.240.0070.00617.80
7.4.230.0030.00917.84
7.4.220.0100.02017.76
7.4.210.0070.02117.80
7.4.200.0060.00617.77
7.4.190.0000.01317.92
7.4.160.0150.01217.82
7.4.150.0120.01517.83
7.4.140.0190.01417.86
7.4.130.0150.01217.82
7.4.120.0100.02317.84
7.4.110.0240.01717.68
7.4.100.0120.01617.67
7.4.90.0060.02117.59
7.4.80.0120.01619.39
7.4.70.0030.02517.66
7.4.60.0070.02017.72
7.4.50.0080.00817.74
7.4.40.0160.01322.77
7.4.30.0130.01717.73
7.3.330.0000.01114.68
7.3.320.0060.00614.71
7.3.310.0000.01517.79
7.3.300.0070.00717.66
7.3.290.0130.02317.76
7.3.280.0110.01717.67
7.3.270.0140.01417.98
7.3.260.0150.01317.75
7.3.250.0030.02817.94
7.3.240.0190.01917.74
7.3.230.0090.02017.74
7.3.210.0000.02617.89
7.3.200.0060.02517.68
7.3.190.0130.02917.99
7.3.180.0060.01917.90
7.3.170.0090.02017.86
7.3.160.0080.01817.93
7.2.330.0100.01917.95
7.2.320.0030.02517.83
7.2.310.0060.02517.79
7.2.300.0030.02517.82
7.2.290.0060.02117.81
5.4.450.4630.05019.93
5.4.440.3430.04719.71
5.4.430.3370.05019.91
5.4.420.4030.05019.95
5.4.410.3370.04319.70
5.4.400.3670.05319.46
5.4.390.4000.05019.46
5.4.380.4230.04719.38
5.4.370.4130.04719.60
5.4.360.4200.05019.39
5.4.350.3900.05019.72
5.4.340.3770.04019.50
5.4.320.3300.05319.74
5.4.310.3530.05319.45
5.4.300.3170.05019.60
5.4.290.3700.04319.81
5.4.280.3230.04719.58
5.4.270.3300.05019.59
5.4.260.3930.06319.49
5.4.250.4070.04019.62
5.4.240.4270.04719.71
5.4.230.3930.05319.48
5.4.220.3330.04719.48
5.4.210.3430.03719.67
5.4.200.3600.05719.59
5.4.190.2400.04319.55
5.4.180.2500.05019.44
5.4.170.2930.04719.66
5.4.160.3200.05019.75
5.4.150.2970.04719.57
5.4.140.2700.05016.87
5.4.130.3100.03716.89
5.4.120.3030.04316.83
5.4.110.3800.05316.90
5.4.100.1800.05316.84
5.4.90.1630.03717.00
5.4.80.2770.04316.98
5.4.70.3470.04016.77
5.4.60.2670.04316.96
5.4.50.2930.04017.10
5.4.40.3170.04716.87
5.4.30.3070.04716.96
5.4.20.3000.04316.68
5.4.10.3070.05316.93
5.4.00.3170.04316.36
5.3.290.3700.06015.34
5.3.280.3370.05315.12
5.3.270.3500.05015.44
5.3.260.3300.05315.11
5.3.250.3530.04715.13
5.3.240.3600.04315.28
5.3.230.3470.05015.31
5.3.220.3670.04715.25
5.3.210.4130.05315.13
5.3.200.4230.04315.09
5.3.190.4130.04315.13
5.3.180.3830.04015.38
5.3.170.4270.04715.28
5.3.160.3830.04715.17
5.3.150.4230.04015.07
5.3.140.5430.04015.05
5.3.130.4100.05315.26
5.3.120.4200.04715.16
5.3.110.4130.05015.13
5.3.100.3470.04714.77
5.3.90.3570.04314.51
5.3.80.4370.03314.52
5.3.70.3470.04314.62
5.3.60.3530.04314.60
5.3.50.3530.04714.51
5.3.40.3530.04014.47
5.3.30.3530.03714.50
5.3.20.3630.03014.23
5.3.10.3830.05314.31
5.3.00.3530.04314.44

preferences:
40.4 ms | 401 KiB | 5 Q