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', 'EST', 'GMT-5'] 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.0170.00318.30
8.3.50.0190.00921.15
8.3.40.0110.00719.02
8.3.30.0110.00420.34
8.3.20.0080.00018.69
8.3.10.0000.00821.04
8.3.00.0050.00223.53
8.2.180.0150.00716.75
8.2.170.0090.00622.96
8.2.160.0030.01320.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00326.16
8.2.120.0080.00019.48
8.2.110.0060.00322.07
8.2.100.0110.00017.97
8.2.90.0070.00319.20
8.2.80.0030.00519.21
8.2.70.0040.00417.88
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0060.00319.88
8.2.30.0080.00019.46
8.2.20.0090.00017.93
8.2.10.0000.00718.04
8.2.00.0080.00017.83
8.1.280.0070.00725.92
8.1.270.0000.00923.99
8.1.260.0060.00926.35
8.1.250.0140.00028.09
8.1.240.0030.00622.53
8.1.230.0090.00320.80
8.1.220.0030.00518.77
8.1.210.0050.00318.84
8.1.200.0000.01017.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00818.51
8.1.160.0040.00418.91
8.1.150.0070.00018.79
8.1.140.0040.00417.47
8.1.130.0040.00417.95
8.1.120.0100.00017.47
8.1.110.0030.00617.41
8.1.100.0000.00717.44
8.1.90.0040.00417.44
8.1.80.0040.00417.53
8.1.70.0000.00717.51
8.1.60.0070.00317.56
8.1.50.0040.00417.55
8.1.40.0000.00817.59
8.1.30.0040.00417.68
8.1.20.0040.00417.61
8.1.10.0030.00517.58
8.1.00.0060.00317.54
8.0.300.0000.00720.02
8.0.290.0040.00417.30
8.0.280.0070.00018.51
8.0.270.0040.00417.42
8.0.260.0030.00317.09
8.0.250.0040.00417.20
8.0.240.0080.00017.20
8.0.230.0030.00317.22
8.0.220.0050.00217.18
8.0.210.0050.00317.17
8.0.200.0060.00017.19
8.0.190.0030.00517.18
8.0.180.0040.00417.13
8.0.170.0000.00717.18
8.0.160.0040.00417.23
8.0.150.0000.00717.14
8.0.140.0040.00417.04
8.0.130.0060.00013.52
8.0.120.0030.00617.14
8.0.110.0050.00317.27
8.0.100.0040.00417.11
8.0.90.0070.00016.99
8.0.80.0060.00917.22
8.0.70.0000.00717.20
8.0.60.0070.00016.96
8.0.50.0050.00317.14
8.0.30.0050.01317.38
8.0.20.0110.00817.44
8.0.10.0040.00417.10
8.0.00.0110.01017.04
7.4.330.0050.00014.89
7.4.320.0000.00616.48
7.4.300.0000.00616.69
7.4.290.0040.00416.72
7.4.280.0000.00716.66
7.4.270.0000.00816.61
7.4.260.0050.00013.35
7.4.250.0040.00416.64
7.4.240.0030.00416.66
7.4.230.0070.00016.69
7.4.220.0070.02016.74
7.4.210.0060.00916.70
7.4.200.0040.00416.40
7.4.190.0000.00716.55
7.4.160.0090.01216.70
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0070.01316.70
7.4.120.0060.01016.65
7.4.110.0060.01216.80
7.4.100.0120.00616.88
7.4.90.0120.00616.68
7.4.80.0040.01619.39
7.4.70.0030.01516.42
7.4.60.0140.00316.87
7.4.50.0000.00816.48
7.4.40.0070.00722.77
7.4.30.0110.00516.72
7.4.00.0070.00715.04
7.3.330.0050.00213.30
7.3.320.0050.00013.27
7.3.310.0040.00416.58
7.3.300.0070.00016.53
7.3.290.0100.00716.45
7.3.280.0090.00616.59
7.3.270.0110.00717.40
7.3.260.0100.01318.24
7.3.250.0090.00916.68
7.3.240.0090.00916.49
7.3.230.0140.00316.73
7.3.210.0100.00716.80
7.3.200.0030.02119.39
7.3.190.0080.01116.63
7.3.180.0080.00816.44
7.3.170.0160.00716.71
7.3.160.0000.01616.63
7.3.120.0070.01015.27
7.2.330.0100.00716.83
7.2.320.0030.01616.88
7.2.310.0130.00917.06
7.2.300.0030.01316.89
7.2.290.0110.00817.05
7.2.60.0090.00317.11
7.2.00.0080.01219.83
7.1.200.0040.00715.66
7.1.100.0060.00918.45
7.1.70.0060.00617.45
7.1.60.0030.02019.17
7.1.50.0200.01435.03
7.1.00.0070.03322.31
7.0.200.0030.00616.93
7.0.140.0030.07322.15
7.0.60.0100.08019.93
7.0.50.0070.07317.89
7.0.40.0070.09020.32
7.0.30.0270.07720.35
7.0.20.0130.04720.01
7.0.10.0400.06320.17
7.0.00.0030.07320.12
5.6.280.0030.07321.16
5.6.210.0130.07720.47
5.6.200.0100.08018.16
5.6.190.0070.08720.45
5.6.180.3800.04320.62
5.6.170.0200.04020.52
5.6.160.0100.04720.49
5.6.150.0130.06718.21
5.6.140.0030.06318.14
5.6.130.0000.08718.18
5.6.120.0100.07721.13
5.6.110.0130.08021.14
5.6.100.0070.08321.04
5.6.90.0130.08320.87
5.6.80.0200.06020.38
5.6.70.0200.03320.39
5.5.350.0330.07020.41
5.5.340.0170.07017.91
5.5.330.0070.08720.43
5.5.320.0100.04720.28
5.5.310.0230.05720.21
5.5.300.0030.05017.95
5.5.290.0100.03718.02
5.5.280.0070.08320.85
5.5.270.0000.07320.86
5.5.260.0000.04320.96
5.5.250.0130.07020.68
5.5.240.0030.08320.28
5.4.450.0070.04719.10
5.4.440.0170.04319.13
5.4.430.0270.07319.20
5.4.420.0130.04319.39
5.4.410.0130.05019.40
5.4.400.0230.07719.25
5.4.390.0270.06719.20
5.4.380.0170.05019.08
5.4.370.0230.06319.08
5.4.360.0270.06719.25
5.4.350.0270.04319.07
5.4.340.0230.04019.10
5.4.320.0270.06718.78
5.4.310.0200.04318.89
5.4.300.0130.04019.05
5.4.290.0270.05019.24
5.4.280.0170.05019.24
5.4.270.0030.03719.05
5.4.260.0130.06319.25
5.4.250.0330.05019.09
5.4.240.0200.04019.25
5.4.230.0230.04318.93
5.4.220.0170.03719.08
5.4.210.0170.04319.24
5.4.200.0200.06019.24
5.4.190.0200.03319.04
5.4.180.0200.05019.23
5.4.170.0230.04319.05
5.4.160.0000.04019.07
5.4.150.0030.05319.23
5.4.140.0500.04316.32
5.4.130.1870.03716.32
5.4.120.1970.03716.37
5.4.110.1730.03716.13
5.4.100.1800.04316.27
5.4.90.1830.03016.46
5.4.80.1900.02716.10
5.4.70.0070.07016.53
5.4.60.0070.04716.26
5.4.50.0000.03716.38
5.4.40.1630.03716.24
5.4.30.1900.03316.43
5.4.20.0170.03316.25
5.4.10.0300.06316.46
5.4.00.0170.04315.81
5.3.290.0200.04014.52
5.3.280.0070.07014.55
5.3.270.0130.05314.64
5.3.260.0230.06714.45
5.3.250.0230.04314.62
5.3.240.0170.05014.60
5.3.230.0230.07314.55
5.3.220.0270.04314.41
5.3.210.0170.07014.43
5.3.200.0100.04314.41
5.3.190.0170.04714.41
5.3.180.0200.04714.41
5.3.170.0230.06014.42
5.3.160.0200.04014.44
5.3.150.0200.04014.66
5.3.140.0230.04714.50
5.3.130.0200.04314.39
5.3.120.0030.08014.48
5.3.110.0100.05014.40
5.3.100.0230.03714.00
5.3.90.0230.05014.04
5.3.80.0170.07313.82
5.3.70.0200.07313.86
5.3.60.0130.05313.88
5.3.50.0170.04013.72
5.3.40.0200.03313.85
5.3.30.0170.03713.81
5.3.20.0200.04713.63
5.3.10.0200.03313.61
5.3.00.0170.03313.48
5.2.170.0100.03311.16
5.2.160.0270.05011.00
5.2.150.0170.02711.00
5.2.140.0130.03011.09
5.2.130.0230.05310.96
5.2.120.0130.03010.95
5.2.110.0100.04711.15
5.2.100.0130.03311.18
5.2.90.0170.02311.15
5.2.80.0170.02711.03
5.2.70.0230.03010.95
5.2.60.0170.02711.10
5.2.50.0200.06010.96
5.2.40.0130.03710.90
5.2.30.0170.05710.88
5.2.20.0170.03011.00
5.2.10.0170.03010.83
5.2.00.0170.05310.79
5.1.60.0130.0279.94
5.1.50.0170.04010.09
5.1.40.0170.0379.95
5.1.30.0170.02710.40
5.1.20.0130.04010.21
5.1.10.0170.0279.94
5.1.00.0170.0279.94
5.0.50.0070.0438.44
5.0.40.0100.0278.48
5.0.30.0070.0378.20
5.0.20.0100.0378.09
5.0.10.0070.0238.17
5.0.00.0100.0338.05
4.4.90.0070.0337.75
4.4.80.0030.0307.75
4.4.70.0030.0177.75
4.4.60.0100.0337.75
4.4.50.0000.0307.75
4.4.40.0000.0537.75
4.4.30.0030.0277.75
4.4.20.0000.0237.75
4.4.10.0000.0407.75
4.4.00.0000.0277.75
4.3.110.0100.0207.75
4.3.100.0000.0177.75
4.3.90.0200.0337.75
4.3.80.0770.0407.75
4.3.70.0700.0207.75
4.3.60.0570.0137.75
4.3.50.0630.0177.75
4.3.40.0600.0237.75
4.3.30.0370.0207.75
4.3.20.0300.0177.75
4.3.10.0370.0137.75
4.3.00.0370.0107.75

preferences:
38.66 ms | 401 KiB | 5 Q