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(md5(serialize(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.0090.00918.93
8.3.50.0150.00822.17
8.3.40.0140.01019.85
8.3.30.0030.01319.96
8.3.20.0060.00320.68
8.3.10.0030.00621.96
8.3.00.0000.00822.40
8.2.180.0100.00717.75
8.2.170.0080.00822.96
8.2.160.0100.00719.96
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0110.01126.16
8.2.120.0070.00320.04
8.2.110.0060.00320.99
8.2.100.0130.00618.62
8.2.90.0030.00620.09
8.2.80.0070.00419.84
8.2.70.0000.00918.38
8.2.60.0050.00618.93
8.2.50.0030.00618.75
8.2.40.0030.00618.91
8.2.30.0000.00918.92
8.2.20.0000.00918.85
8.2.10.0000.00918.88
8.2.00.0030.00618.78
8.1.280.0130.01025.92
8.1.270.0000.01022.69
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0100.00023.97
8.1.230.0100.00321.41
8.1.220.0030.00618.53
8.1.210.0030.00618.77
8.1.200.0000.01118.35
8.1.190.0000.00918.53
8.1.180.0000.01020.78
8.1.170.0000.00919.28
8.1.160.0040.00422.66
8.1.150.0000.00919.68
8.1.140.0040.00418.28
8.1.130.0080.00018.68
8.1.120.0000.00818.50
8.1.110.0000.00918.45
8.1.100.0040.00418.45
8.1.90.0030.00618.42
8.1.80.0060.00318.33
8.1.70.0030.00518.44
8.1.60.0000.00918.56
8.1.50.0070.00318.46
8.1.40.0060.00318.34
8.1.30.0030.00718.46
8.1.20.0060.00318.63
8.1.10.0000.00918.38
8.1.00.0000.01118.30
8.0.300.0060.00618.77
8.0.290.0120.00318.43
8.0.280.0100.00319.62
8.0.270.0030.01018.06
8.0.260.0030.01019.68
8.0.250.0040.00818.24
8.0.240.0030.01418.22
8.0.230.0000.01218.32
8.0.220.0040.00818.20
8.0.210.0080.00418.24
8.0.200.0060.00618.34
8.0.190.0040.00818.35
8.0.180.0060.00618.32
8.0.170.0030.01018.35
8.0.160.0100.00318.40
8.0.150.0030.00918.16
8.0.140.0060.00618.14
8.0.130.0030.00814.80
8.0.120.0000.01418.27
8.0.110.0060.00618.32
8.0.100.0100.00318.32
8.0.90.0030.01018.15
8.0.80.0100.02418.22
8.0.70.0030.01018.18
8.0.60.0080.00518.25
8.0.50.0000.01318.29
8.0.30.0090.02818.51
8.0.20.0060.02418.51
8.0.10.0030.01018.40
8.0.00.0050.02518.09
7.4.330.0030.01015.00
7.4.320.0030.00917.79
7.4.300.0040.00817.66
7.4.290.0070.00717.86
7.4.280.0000.01217.82
7.4.270.0030.00917.89
7.4.260.0030.00917.85
7.4.250.0090.00617.82
7.4.240.0030.00917.80
7.4.230.0060.00617.81
7.4.220.0090.02917.80
7.4.210.0060.01817.83
7.4.200.0030.01017.76
7.4.190.0030.01017.91
7.4.160.0060.01917.91
7.4.150.0130.01417.93
7.4.140.0090.02817.86
7.4.130.0120.01617.83
7.4.120.0090.01817.83
7.4.110.0120.02617.86
7.4.100.0200.01617.87
7.4.90.0140.01417.69
7.4.80.0070.02019.39
7.4.70.0100.01817.81
7.4.60.0120.01517.93
7.4.50.0000.01817.65
7.4.40.0040.02222.77
7.4.30.0000.02717.77
7.4.00.0100.02016.14
7.3.330.0040.00714.70
7.3.320.0030.00914.69
7.3.310.0100.00317.55
7.3.300.0040.00817.61
7.3.290.0160.00717.71
7.3.280.0070.02117.68
7.3.270.0080.02018.00
7.3.260.0150.01617.81
7.3.250.0170.01117.80
7.3.240.0070.02317.83
7.3.230.0140.01717.82
7.3.210.0090.01817.73
7.3.200.0070.02017.88
7.3.190.0120.01817.88
7.3.180.0030.02317.81
7.3.170.0070.01917.88
7.3.160.0130.01317.75
7.3.120.0030.03316.18
7.2.330.0000.02818.09
7.2.320.0100.01717.64
7.2.310.0090.02217.97
7.2.300.0090.01817.63
7.2.290.0090.01818.11
7.2.60.0030.01717.58
7.2.00.0070.02120.09
7.1.200.0100.00716.19
7.1.100.0060.00918.64
7.1.70.0100.01718.00
7.1.60.0060.02919.82
7.1.50.0130.01617.74
7.1.00.0030.05022.32
7.0.200.0030.01617.34
7.0.140.0000.08721.96
7.0.100.0270.09020.44
7.0.90.0030.05020.36
7.0.80.0100.08320.47
7.0.70.0000.05720.42
7.0.60.0030.09320.29
7.0.50.0100.09020.83
7.0.40.0100.08319.96
7.0.30.0030.09320.09
7.0.20.0100.08320.10
7.0.10.0170.06020.14
7.0.00.0100.09020.03
5.6.280.0000.08721.50
5.6.250.0100.05721.37
5.6.240.0130.08321.23
5.6.230.0100.09021.34
5.6.220.0200.05321.33
5.6.210.0130.08021.21
5.6.200.0100.09321.55
5.6.190.0070.06021.73
5.6.180.0100.08021.54
5.6.170.0070.09721.77
5.6.160.0100.08021.67
5.6.150.0100.09321.59
5.6.140.0100.10021.62
5.6.130.0100.09321.61
5.6.120.0100.08021.67
5.6.110.0100.08721.59
5.6.100.0100.10021.53
5.6.90.0130.08021.51
5.6.80.0000.08321.05
5.6.70.0030.08020.84
5.6.60.0000.09721.04
5.6.50.0100.04320.91
5.6.40.0030.04721.05
5.6.30.0030.04320.83
5.6.20.0030.05720.98
5.6.10.0000.05020.89
5.6.00.0030.05020.93
5.5.380.0100.05720.96
5.5.370.0070.05021.11
5.5.360.0170.08720.93
5.5.350.0070.05720.93
5.5.340.0100.08321.46
5.5.330.0070.07321.39
5.5.320.0170.07321.42
5.5.310.0130.09021.32
5.5.300.0100.06021.23
5.5.290.0070.05721.38
5.5.280.0130.07721.33
5.5.270.0100.07721.51
5.5.260.0170.07321.52
5.5.250.0130.07721.26
5.5.240.0200.08020.73
5.5.230.0070.09320.83
5.5.220.0070.05320.73
5.5.210.0100.04320.84
5.5.200.0070.04320.81
5.5.190.0030.04720.75
5.5.180.0030.04320.85
5.5.160.0000.05320.69
5.5.150.0070.04720.74
5.5.140.0100.04320.82
5.5.130.0030.05720.64
5.5.120.0030.05020.75
5.5.110.0070.04320.76
5.5.100.0070.04320.61
5.5.90.0030.06020.51
5.5.80.0030.05720.53
5.5.70.0030.05720.71
5.5.60.0030.05020.64
5.5.50.0030.04720.60
5.5.40.0130.04020.72
5.5.30.0100.04720.62
5.5.20.0000.06020.56
5.5.10.0070.04020.65
5.5.00.0100.04320.53
5.4.450.0100.07720.01
5.4.440.0030.06319.84
5.4.430.0030.06719.79
5.4.420.0130.08319.77
5.4.410.0070.06019.58
5.4.400.0030.09019.52
5.4.390.0070.08019.61
5.4.380.0000.05319.45
5.4.370.0030.05019.40
5.4.360.0030.05019.61
5.4.350.0030.04719.81
5.4.340.0130.05319.53
5.4.320.0030.04719.55
5.4.310.0070.04719.53
5.4.300.0100.04019.35
5.4.290.0030.05319.56
5.4.280.0000.05719.54
5.4.270.0070.04719.61
5.4.260.0000.06319.52
5.4.250.0000.05719.58
5.4.240.0070.05719.67
5.4.230.0030.04719.50
5.4.220.0030.05319.54
5.4.210.0030.05019.60
5.4.200.0070.04319.54
5.4.190.0070.05019.52
5.4.180.0070.04319.48
5.4.170.0070.05319.44
5.4.160.0030.04019.71
5.4.150.0030.05019.59
5.4.140.0030.04016.71
5.4.130.0030.03716.88
5.4.120.0030.04716.98
5.4.110.0100.03016.83
5.4.100.0070.03716.87
5.4.90.0030.05716.93
5.4.80.0070.04016.84
5.4.70.0030.09716.91
5.4.60.0170.07017.01
5.4.50.0100.08017.01
5.4.40.0030.05017.00
5.4.30.0100.09016.79
5.4.20.0030.04316.82
5.4.10.0170.07016.81
5.4.00.0030.08716.39
5.3.290.0030.05315.35
5.3.280.0000.05315.41
5.3.270.0070.04715.40
5.3.260.0070.03715.32
5.3.250.0070.04315.36
5.3.240.0070.05315.32
5.3.230.0000.06015.38
5.3.220.0030.04715.40
5.3.210.0000.04715.29
5.3.200.0000.05015.24
5.3.190.0070.04715.18
5.3.180.0100.04015.23
5.3.170.0070.03715.33
5.3.160.0030.04015.19
5.3.150.0100.03715.18
5.3.140.0000.07715.38
5.3.130.0000.07015.36
5.3.120.0070.08715.34
5.3.110.0100.09015.21
5.3.100.0000.09314.80
5.3.90.0170.08314.76
5.3.80.0130.06714.77
5.3.70.0030.04314.40
5.3.60.0030.08314.63
5.3.50.0000.08714.70
5.3.40.0030.09014.53
5.3.30.0170.02714.73
5.3.20.0000.09314.32
5.3.10.0070.06714.26
5.3.00.0030.08714.41
5.2.170.0070.06311.69
5.2.160.0100.07311.73
5.2.150.0100.07011.52
5.2.140.0030.07311.63
5.2.130.0030.06011.63
5.2.120.0030.05711.53
5.2.110.0200.06011.69
5.2.100.0100.06711.76
5.2.90.0100.04011.69
5.2.80.0070.07311.61
5.2.70.0030.07311.65
5.2.60.0000.07011.45
5.2.50.0030.06011.51
5.2.40.0070.05711.38
5.2.30.0000.04711.41
5.2.20.0030.05311.62
5.2.10.0070.07311.50
5.2.00.0030.06011.52
5.1.60.0000.0339.84
5.1.50.0030.03710.07
5.1.40.0070.02710.07
5.1.30.0030.03310.38
5.1.20.0100.02010.39
5.1.10.0030.03010.21
5.1.00.0030.05010.16
5.0.50.0000.0409.38
5.0.40.0030.0309.38
5.0.30.0030.0339.38
5.0.20.0000.0239.38
5.0.10.0070.0409.38
5.0.00.0030.0709.38
4.4.90.0000.0239.38
4.4.80.0030.0339.38
4.4.70.0070.0209.38
4.4.60.0030.0339.38
4.4.50.0000.0339.38
4.4.40.0030.0279.38
4.4.30.0030.0379.38
4.4.20.0000.0309.38
4.4.10.0000.0379.38
4.4.00.0000.0339.38
4.3.110.0000.0339.38
4.3.100.0030.0179.38
4.3.90.0070.0109.38
4.3.80.0000.0539.38
4.3.70.0000.0309.38
4.3.60.0000.0379.38
4.3.50.0000.0279.38
4.3.40.0030.0239.38
4.3.30.0000.0379.38
4.3.20.0030.0179.38
4.3.10.0000.0209.38
4.3.00.0100.0139.38

preferences:
40.42 ms | 401 KiB | 5 Q