3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); echo date_default_timezone_get(), PHP_EOL; $time = DateTime::createFromFormat('Y-m-d H:i:s', '2014-05-19 11:30:00'); foreach (['UTC', 'Europe/London', 'BST', 'Etc/GMT+1', 'GMT+1', 'CEST'] as $abbr) { try { $time->setTimezone(new DateTimeZone($abbr)); echo "{$abbr}: {$time->format(DATE_RFC822)}", PHP_EOL; } catch (Exception $e) { echo "{$abbr}: ERROR - {$e->getMessage()}"; } }

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.40.0120.00619.02
8.3.30.0070.00720.38
8.3.20.0040.00418.72
8.3.10.0040.00420.92
8.3.00.0070.00023.56
8.2.170.0100.00622.96
8.2.160.0130.00620.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0100.00626.16
8.2.120.0040.00419.89
8.2.110.0040.00819.34
8.2.100.0060.00617.84
8.2.90.0040.00419.36
8.2.80.0000.00719.38
8.2.70.0120.00617.63
8.2.60.0050.00318.16
8.2.50.0040.00418.07
8.2.40.0030.00718.28
8.2.30.0040.00419.46
8.2.20.0070.00017.91
8.2.10.0040.00417.83
8.2.00.0030.00517.95
8.1.270.0080.00023.99
8.1.260.0100.01026.35
8.1.250.0040.00428.09
8.1.240.0040.00820.77
8.1.230.0070.00420.91
8.1.220.0060.00318.77
8.1.210.0050.00318.85
8.1.200.0090.00017.25
8.1.190.0050.00317.40
8.1.180.0090.00018.10
8.1.170.0000.00818.70
8.1.160.0040.00418.78
8.1.150.0000.00718.63
8.1.140.0000.00717.52
8.1.130.0000.00717.95
8.1.120.0000.00717.45
8.1.110.0050.00317.49
8.1.100.0000.00817.46
8.1.90.0070.00017.53
8.1.80.0040.00417.51
8.1.70.0000.00717.44
8.1.60.0060.00317.64
8.1.50.0000.00717.52
8.1.40.0000.00817.55
8.1.30.0000.00817.66
8.1.20.0040.00417.70
8.1.10.0040.00417.67
8.1.00.0030.00517.52
8.0.300.0060.00619.80
8.0.290.0040.00417.30
8.0.280.0070.00018.50
8.0.270.0040.00417.41
8.0.260.0030.00317.05
8.0.250.0000.00717.12
8.0.240.0060.00617.24
8.0.230.0070.00017.28
8.0.220.0000.00817.15
8.0.210.0040.00417.06
8.0.200.0000.00717.22
8.0.190.0040.00417.12
8.0.180.0050.00517.04
8.0.170.0040.00417.13
8.0.160.0070.00017.22
8.0.150.0000.00717.06
8.0.140.0050.00317.01
8.0.130.0030.00313.55
8.0.120.0060.00317.08
8.0.110.0000.00717.20
8.0.100.0000.00717.03
8.0.90.0070.00017.21
8.0.80.0140.00717.13
8.0.70.0000.00816.99
8.0.60.0000.00717.13
8.0.50.0040.00417.03
8.0.30.0090.01517.39
8.0.20.0120.00717.40
8.0.10.0030.00617.27
8.0.00.0090.00916.84
7.4.330.0000.00516.77
7.4.320.0030.00316.69
7.4.300.0000.00716.68
7.4.290.0030.00316.69
7.4.280.0030.00316.67
7.4.270.0040.00416.68
7.4.260.0050.00013.47
7.4.250.0040.00416.46
7.4.240.0030.00316.70
7.4.230.0030.00316.50
7.4.220.0180.00716.74
7.4.210.0080.00816.60
7.4.200.0030.00316.69
7.4.190.0020.00516.73
7.4.160.0100.00716.49
7.4.150.0090.01017.40
7.4.140.0100.00717.86
7.4.130.0050.01316.71
7.4.120.0130.00716.62
7.4.110.0060.01216.63
7.4.100.0080.01116.58
7.4.90.0160.00716.43
7.4.80.0100.00719.39
7.4.70.0130.00316.62
7.4.60.0140.00416.69
7.4.50.0040.00416.61
7.4.40.0040.01222.77
7.4.30.0090.00916.79
7.4.00.0060.00914.99
7.3.330.0060.00013.43
7.3.320.0060.00313.38
7.3.310.0000.00716.38
7.3.300.0070.00016.53
7.3.290.0030.01216.59
7.3.280.0130.00716.52
7.3.270.0110.00717.40
7.3.260.0170.00718.24
7.3.250.0130.00816.64
7.3.240.0120.00616.64
7.3.230.0070.01516.53
7.3.210.0070.01016.39
7.3.200.0090.01219.39
7.3.190.0080.00916.68
7.3.180.0040.01116.48
7.3.170.0080.00816.71
7.3.160.0150.00616.54
7.3.120.0090.00614.91
7.3.110.0110.00314.95
7.3.100.0030.00614.95
7.3.90.0080.00415.16
7.3.80.0070.01015.16
7.3.70.0070.00715.03
7.3.60.0080.00514.93
7.3.50.0030.01015.02
7.3.40.0090.00615.18
7.3.30.0000.01615.02
7.3.20.0030.01016.91
7.3.10.0050.00816.86
7.3.00.0030.01116.98
7.2.330.0110.00616.93
7.2.320.0140.01017.00
7.2.310.0100.01316.96
7.2.300.0060.00916.99
7.2.290.0130.00417.00
7.2.240.0030.01215.25
7.2.230.0080.00415.36
7.2.220.0030.01315.48
7.2.210.0030.00815.26
7.2.200.0080.00815.28
7.2.190.0040.00715.10
7.2.180.0060.00915.11
7.2.170.0070.00715.25
7.2.160.0070.00715.00
7.2.150.0100.00716.95
7.2.140.0060.00817.25
7.2.130.0080.00517.07
7.2.120.0050.01217.19
7.2.110.0070.00817.07
7.2.100.0100.00317.10
7.2.90.0040.01017.03
7.2.80.0060.01217.04
7.2.70.0090.01017.15
7.2.60.0100.00916.96
7.2.50.0130.00717.20
7.2.40.0120.00817.13
7.2.30.0030.01017.04
7.2.20.0080.01017.18
7.2.10.0040.01017.10
7.2.00.0080.01017.78
7.1.330.0080.00515.99
7.1.320.0030.00616.08
7.1.310.0100.00616.03
7.1.300.0030.01416.12
7.1.290.0030.00615.63
7.1.280.0040.01116.13
7.1.270.0110.00315.75
7.1.260.0040.00715.95
7.1.250.0050.00915.95
7.1.200.0060.00615.82
7.1.100.0040.00818.25
7.1.70.0040.00917.32
7.1.60.0130.01319.17
7.1.50.0070.01017.18
7.1.00.0030.04322.30
7.0.200.0000.00717.23
7.0.140.0100.06721.92
7.0.100.0070.07720.01
7.0.90.0100.07719.86
7.0.80.0230.07020.15
7.0.70.0130.07319.96
7.0.60.0200.08019.80
7.0.50.0070.08020.32
7.0.40.0070.08020.10
7.0.30.0070.08720.10
7.0.20.0100.07020.05
7.0.10.0070.08720.07
7.0.00.0030.05320.08
5.6.280.0030.07021.03
5.6.250.0070.09020.57
5.6.240.0070.08320.64
5.6.230.0130.07020.63
5.6.220.0130.08020.49
5.6.210.0100.04720.62
5.6.200.0130.09021.03
5.6.190.0070.05321.11
5.6.180.0070.08021.03
5.6.170.0070.07721.04
5.6.160.0100.08021.02
5.6.150.0130.07021.16
5.6.140.0100.08321.03
5.6.130.0070.07721.00
5.6.120.0070.04321.10
5.6.110.0030.04721.02
5.6.100.0070.08321.07
5.6.90.0130.06720.93
5.6.80.0070.08020.43
5.6.70.0130.07720.43
5.6.60.0000.08720.47
5.6.50.0100.08320.45
5.6.40.0100.05020.35
5.6.30.0100.07720.29
5.6.20.0100.06720.45
5.6.10.0000.07020.53
5.6.00.0170.07320.39
5.5.380.0030.08720.37
5.5.370.0170.07020.36
5.5.360.0070.08720.53
5.5.350.0170.07020.39
5.5.340.0130.07720.89
5.5.330.0170.07320.61
5.5.320.0100.08320.64
5.5.310.0100.07020.82
5.5.300.0130.05020.83
5.5.290.0070.08020.94
5.5.280.0070.04720.86
5.5.270.0030.09020.81
5.5.260.0070.07020.78
5.5.250.0100.07020.63
5.5.240.0100.08320.30
5.5.230.0030.07320.14
5.5.220.0100.04320.20
5.5.210.0170.03320.25
5.5.200.0070.04320.25
5.5.190.0100.08020.23
5.5.180.0100.06320.12
5.5.160.0130.06720.08
5.5.150.0130.06720.26
5.5.140.0200.07020.14
5.5.130.0030.08320.11
5.5.120.0070.07720.23
5.5.110.0070.08020.22
5.5.100.0130.07020.07
5.5.90.0030.07720.09
5.5.80.0070.08020.17
5.5.70.0030.07720.12
5.5.60.0170.03320.15
5.5.50.0170.07019.96
5.5.40.0100.07319.99
5.5.30.0070.04020.14
5.5.20.0030.04320.02
5.5.10.0100.08020.11
5.5.00.0130.07020.00
5.4.450.0000.08019.37
5.4.440.0030.08019.30
5.4.430.0200.06319.45
5.4.420.0030.07719.38
5.4.410.0070.07719.11
5.4.400.0070.07719.12
5.4.390.0070.07718.93
5.4.380.0070.06718.90
5.4.370.0070.08319.23
5.4.360.0070.07319.22
5.4.350.0200.06318.94
5.4.340.0130.07018.90
5.4.320.0070.07718.81
5.4.310.0030.08018.94
5.4.300.0070.07718.97
5.4.290.0070.07719.22
5.4.280.0070.07018.81
5.4.270.0070.07719.07
5.4.260.0030.06718.89
5.4.250.0000.08318.80
5.4.240.0000.08018.96
5.4.230.0130.07719.02
5.4.220.0030.04718.78
5.4.210.0030.04318.93
5.4.200.0030.07718.96
5.4.190.0030.04319.15
5.4.180.0100.07019.03
5.4.170.0070.07719.10
5.4.160.0070.07318.94
5.4.150.0030.04318.94
5.4.140.0030.04716.43
5.4.130.0070.06316.36
5.4.120.0100.06716.33
5.4.110.0000.08016.39
5.4.100.0130.04316.36
5.4.90.0070.07316.36
5.4.80.0100.07016.41
5.4.70.0100.07316.24
5.4.60.0030.07716.34
5.4.50.0100.07316.33
5.4.40.0130.04016.47
5.4.30.0130.06316.40
5.4.20.0100.07316.33
5.4.10.0070.07716.22
5.4.00.0030.07315.82
5.3.290.0000.08314.63
5.3.280.0030.08014.55
5.3.270.0100.03314.61
5.3.260.0070.07714.56
5.3.250.0030.08014.59
5.3.240.0130.03714.46
5.3.230.0130.07014.43
5.3.220.0030.07714.50
5.3.210.0130.07014.53
5.3.200.0070.06314.56
5.3.190.0200.06014.40
5.3.180.0030.05014.52
5.3.170.0070.07014.54
5.3.160.0070.04014.42
5.3.150.0070.07714.53
5.3.140.0030.06314.53
5.3.130.0000.05714.54
5.3.120.0070.07714.54
5.3.110.0070.07714.55
5.3.100.0000.08014.03
5.3.90.0030.05713.98
5.3.80.0030.07314.02
5.3.70.0070.07313.88
5.3.60.0070.06713.91
5.3.50.0070.06313.90
5.3.40.0130.06013.80
5.3.30.0100.07313.91
5.3.20.0100.06013.68
5.3.10.0000.03713.64
5.3.00.0070.07013.63
5.2.170.0000.06311.13
5.2.160.0030.05311.06
5.2.150.0030.03711.07
5.2.140.0030.06011.14
5.2.130.0030.02311.05
5.2.120.0030.06311.08
5.2.110.0130.06011.08
5.2.100.0070.05710.93
5.2.90.0000.06710.93
5.2.80.0000.04711.04
5.2.70.0070.03010.91
5.2.60.0070.06010.84
5.2.50.0030.06310.85
5.2.40.0000.06711.03
5.2.30.0070.04010.76
5.2.20.0070.06011.00
5.2.10.0030.03710.81
5.2.00.0070.04010.74
5.1.60.0070.0509.88
5.1.50.0030.05710.04
5.1.40.0070.0539.97
5.1.30.0030.04310.36
5.1.20.0030.05710.35
5.1.10.0070.0479.90
5.1.00.0130.04010.10
5.0.50.0030.0478.94
5.0.40.0100.0378.94
5.0.30.0000.0678.94
5.0.20.0030.0438.94
5.0.10.0070.0408.94
5.0.00.0000.0638.94
4.4.90.0000.0378.94
4.4.80.0070.0278.94
4.4.70.0000.0278.94
4.4.60.0000.0378.94
4.4.50.0000.0278.94
4.4.40.0000.0478.94
4.4.30.0030.0278.94
4.4.20.0070.0178.94
4.4.10.0070.0238.94
4.4.00.0030.0238.94
4.3.110.0030.0338.94
4.3.100.0000.0338.94
4.3.90.0000.0308.94
4.3.80.0030.0578.94
4.3.70.0000.0408.94
4.3.60.0000.0378.94
4.3.50.0030.0238.94
4.3.40.0000.0578.94
4.3.30.0000.0278.94
4.3.20.0000.0378.94
4.3.10.0000.0338.94
4.3.00.0030.0338.94

preferences:
42.72 ms | 400 KiB | 5 Q