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()}", PHP_EOL; } }

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.0070.01118.43
8.3.50.0120.00321.27
8.3.40.0100.01019.02
8.3.30.0110.00420.34
8.3.20.0090.00018.87
8.3.10.0040.00420.94
8.3.00.0000.00823.61
8.2.180.0150.00618.29
8.2.170.0000.01522.96
8.2.160.0100.00320.21
8.2.150.0100.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.08
8.2.110.0090.00021.10
8.2.100.0120.00017.93
8.2.90.0000.00919.17
8.2.80.0050.00317.97
8.2.70.0030.00717.88
8.2.60.0030.00618.16
8.2.50.0030.00618.10
8.2.40.0030.00622.07
8.2.30.0070.00319.56
8.2.20.0020.00517.89
8.2.10.0040.00417.91
8.2.00.0040.00418.02
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.84
8.1.230.0110.00019.08
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0070.00317.47
8.1.190.0000.00917.09
8.1.180.0000.00818.10
8.1.170.0060.00318.76
8.1.160.0050.00219.09
8.1.150.0020.00518.63
8.1.140.0000.00717.52
8.1.130.0030.00317.91
8.1.120.0000.00817.53
8.1.110.0040.00417.52
8.1.100.0030.00317.43
8.1.90.0000.00717.44
8.1.80.0080.00017.49
8.1.70.0040.00417.49
8.1.60.0060.00317.49
8.1.50.0030.00617.52
8.1.40.0040.00417.39
8.1.30.0030.00517.66
8.1.20.0030.00517.56
8.1.10.0000.00817.55
8.1.00.0040.00417.65
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.47
8.0.270.0030.00317.45
8.0.260.0040.00418.50
8.0.250.0000.00817.26
8.0.240.0000.00717.25
8.0.230.0030.00317.25
8.0.220.0000.00817.15
8.0.210.0090.00017.17
8.0.200.0030.00317.22
8.0.190.0040.00417.21
8.0.180.0070.00417.13
8.0.170.0000.00717.06
8.0.160.0050.00317.25
8.0.150.0000.00717.00
8.0.140.0030.00417.02
8.0.130.0060.00013.54
8.0.120.0000.00917.18
8.0.110.0040.00417.03
8.0.100.0040.00417.14
8.0.90.0050.00217.15
8.0.80.0100.01017.14
8.0.70.0000.00717.18
8.0.60.0040.00417.17
8.0.50.0080.00017.03
8.0.30.0130.00617.35
8.0.20.0150.00817.41
8.0.10.0040.00417.00
8.0.00.0110.01116.88
7.4.330.0050.00016.77
7.4.320.0060.00016.73
7.4.300.0030.00316.61
7.4.290.0030.00316.51
7.4.280.0000.00716.59
7.4.270.0080.00016.74
7.4.260.0050.00013.37
7.4.250.0070.00016.64
7.4.240.0070.00016.65
7.4.230.0000.00716.66
7.4.220.0080.01916.73
7.4.210.0070.00916.67
7.4.200.0070.00016.75
7.4.190.0050.00316.55
7.4.160.0100.00716.62
7.4.150.0160.00317.40
7.4.140.0110.00817.86
7.4.130.0120.01016.72
7.4.120.0070.01016.69
7.4.110.0150.00316.71
7.4.100.0080.01116.58
7.4.90.0030.01516.95
7.4.80.0150.00619.39
7.4.70.0140.00416.87
7.4.60.0080.00816.43
7.4.50.0040.00016.63
7.4.40.0090.00622.77
7.4.30.0030.00816.78
7.4.00.0040.01315.13
7.3.330.0050.00013.30
7.3.320.0040.00413.38
7.3.310.0030.00316.50
7.3.300.0070.00016.59
7.3.290.0100.00416.59
7.3.280.0090.00816.55
7.3.270.0110.00717.40
7.3.260.0160.00518.24
7.3.250.0090.01016.66
7.3.240.0040.01216.48
7.3.230.0080.00816.80
7.3.210.0100.00716.50
7.3.200.0230.00019.39
7.3.190.0040.01516.65
7.3.180.0110.00816.60
7.3.170.0070.01616.55
7.3.160.0090.00916.56
7.3.120.0030.01314.94
7.3.110.0070.01015.02
7.3.100.0070.00714.98
7.3.90.0090.00915.24
7.3.80.0060.00615.17
7.3.70.0030.01414.79
7.3.60.0070.00714.76
7.3.50.0090.00614.66
7.3.40.0030.01015.00
7.3.30.0100.00715.04
7.3.20.0000.01416.79
7.3.10.0110.00916.76
7.3.00.0120.00716.67
7.2.330.0130.00617.01
7.2.320.0110.00816.72
7.2.310.0150.00916.64
7.2.300.0070.01116.77
7.2.290.0090.00916.69
7.2.250.0070.01015.16
7.2.240.0030.01615.42
7.2.230.0080.00815.43
7.2.220.0070.01015.08
7.2.210.0060.00915.20
7.2.200.0070.00314.97
7.2.190.0130.00615.23
7.2.180.0090.00615.28
7.2.170.0030.01015.15
7.2.130.0070.01016.75
7.2.120.0030.01416.76
7.2.110.0090.00916.75
7.2.100.0110.00716.57
7.2.90.0110.01017.03
7.2.80.0150.00316.76
7.2.70.0150.00916.91
7.2.60.0080.00617.12
7.2.50.0120.00916.93
7.2.40.0110.00616.97
7.2.30.0160.00816.99
7.2.20.0160.00817.11
7.2.10.0130.00416.72
7.2.00.0130.01018.37
7.1.330.0030.01016.21
7.1.320.0030.00616.04
7.1.310.0090.00015.80
7.1.300.0060.01216.00
7.1.290.0040.00715.85
7.1.280.0090.00615.89
7.1.270.0030.00815.99
7.1.260.0070.01015.77
7.1.250.0070.01415.50
7.1.200.0090.00315.79
7.1.100.0060.00618.07
7.1.70.0030.00617.37
7.1.60.0040.01519.17
7.1.50.0280.00935.11
7.1.00.0000.05722.31
7.0.200.0000.00817.06
7.0.140.0000.07322.16
7.0.60.0070.05719.86
7.0.50.0000.04317.81
7.0.40.0130.08020.26
7.0.30.0270.03320.09
7.0.20.0130.08320.04
7.0.10.0300.07320.25
7.0.00.0070.08720.15
5.6.280.0030.07321.14
5.6.210.0070.07320.75
5.6.200.0030.08318.12
5.6.190.0030.05020.49
5.6.180.0330.05720.64
5.6.170.0370.06720.48
5.6.160.0100.03720.47
5.6.150.0070.05718.18
5.6.140.0100.08018.18
5.6.130.0170.08018.10
5.6.120.0000.04721.00
5.6.110.0000.04321.11
5.6.100.0200.08320.97
5.6.90.0100.08021.02
5.6.80.0100.06720.41
5.6.70.4400.03720.39
5.5.350.0130.04320.52
5.5.340.0100.06317.84
5.5.330.0100.04320.40
5.5.320.0300.07720.47
5.5.310.0300.07720.30
5.5.300.0170.05717.91
5.5.290.0070.07017.91
5.5.280.0030.06320.77
5.5.270.0130.08020.72
5.5.260.0130.07720.82
5.5.250.0070.04720.76
5.5.240.0130.07720.27
5.4.450.0400.04719.49
5.4.440.0600.05719.46
5.4.430.0530.04719.40
5.4.420.0430.03719.22
5.4.410.0470.07318.99
5.4.400.0500.05019.22
5.4.390.0530.05719.09
5.4.380.0500.06319.14
5.4.370.0570.05719.06
5.4.360.0230.06719.06
5.4.350.0370.07318.93
5.4.340.0470.06018.93
5.4.320.0500.05018.86
5.4.310.0600.04319.06
5.4.300.0570.04318.79
5.4.290.0500.05718.79
5.4.280.0470.04719.16
5.4.270.0500.04318.93
5.4.260.0600.05319.13
5.4.250.0430.04019.21
5.4.240.0470.06718.79
5.4.230.0570.06319.13
5.4.220.0500.06318.88
5.4.210.0500.06719.21
5.4.200.0500.03019.19
5.4.190.0830.04718.80
5.4.180.0500.06019.08
5.4.170.0430.06018.91
5.4.160.0500.06719.07
5.4.150.0570.05018.91
5.4.140.0430.04016.30
5.4.130.0500.04716.53
5.4.120.0470.04016.27
5.4.110.0500.06316.47
5.4.100.0470.04316.49
5.4.90.0570.06016.52
5.4.80.0370.03716.42
5.4.70.0600.05316.37
5.4.60.0430.04016.46
5.4.50.0600.03716.36
5.4.40.0470.04716.38
5.4.30.0600.05716.39
5.4.20.0530.05316.40
5.4.10.0530.06016.17
5.4.00.0470.03315.99
5.3.290.0600.06014.50
5.3.280.0400.05314.45
5.3.270.0500.07014.63
5.3.260.0570.04014.54
5.3.250.0470.05314.66
5.3.240.0530.06314.55
5.3.230.0600.06314.58
5.3.220.0500.03014.52
5.3.210.0530.06014.41
5.3.200.0530.05014.52
5.3.190.0530.06014.60
5.3.180.0530.04014.61
5.3.170.0500.06714.65
5.3.160.0370.04014.44
5.3.150.0330.04314.42
5.3.140.0500.07014.46
5.3.130.0470.05014.40
5.3.120.0470.07314.64
5.3.110.0530.04714.42
5.3.100.0370.04013.88
5.3.90.0430.06713.95
5.3.80.0500.04013.97
5.3.70.0500.04013.99
5.3.60.0470.03013.86
5.3.50.0370.04013.79
5.3.40.0530.06313.82
5.3.30.0600.05713.89
5.3.20.0470.04313.54
5.3.10.0500.03313.51
5.3.00.0400.03713.64
5.2.170.0400.04011.19
5.2.160.0370.04310.99
5.2.150.0400.04711.04
5.2.140.0400.04711.05
5.2.130.0470.05310.96
5.2.120.0430.05310.94
5.2.110.0430.04310.94
5.2.100.0430.03011.11
5.2.90.0400.05311.15
5.2.80.0330.03710.98
5.2.70.0430.05711.03
5.2.60.0370.04310.91
5.2.50.0370.04710.93
5.2.40.0370.05010.84
5.2.30.0370.05010.81
5.2.20.0470.03710.84
5.2.10.0400.05010.93
5.2.00.0370.04010.76
5.1.60.0330.03310.07
5.1.50.0470.04010.07
5.1.40.0430.04010.07
5.1.30.0330.04310.41
5.1.20.0300.04010.32
5.1.10.0370.03010.07
5.1.00.0370.05010.07
5.0.50.0200.02710.07
5.0.40.0200.03310.07
5.0.30.0130.04710.07
5.0.20.0130.02310.07
5.0.10.0130.02710.07
5.0.00.0230.06010.07
4.4.90.0230.02010.07
4.4.80.0200.03310.07
4.4.70.0170.03010.07
4.4.60.0200.01310.07
4.4.50.0230.03010.07
4.4.40.0170.04010.07
4.4.30.0170.02310.07
4.4.20.0130.02710.07
4.4.10.0170.03310.07
4.4.00.0230.04310.07
4.3.110.0230.02710.07
4.3.100.0170.02310.07
4.3.90.0170.03710.07
4.3.80.0170.03310.07
4.3.70.0230.02710.07
4.3.60.0230.02310.07
4.3.50.0130.03710.07
4.3.40.0170.04010.07
4.3.30.0100.03310.07
4.3.20.0100.02710.07
4.3.10.0100.03710.07
4.3.00.0070.03310.07

preferences:
41.05 ms | 401 KiB | 5 Q