3v4l.org

run code in 300+ PHP versions simultaneously
<?php function formatDateMerchantTimeZone($t, $tz) { $date = new \DateTime($t, new \DateTimeZone('UTC')); $date->setTimezone(new \DateTimeZone($tz)); return $date->format('Y-m-d H:i:s'); } echo formatDateMerchantTimeZone('2013-09-29 11:00', 'America/Los_Angeles');

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.130.0100.01016.82
8.3.120.0110.00820.57
8.3.110.0030.00520.94
8.3.100.0160.00024.06
8.3.90.0070.00326.77
8.3.80.0060.00318.68
8.3.70.0140.00416.50
8.3.60.0110.00416.88
8.3.50.0140.00322.14
8.3.40.0100.01018.93
8.3.30.0040.01119.19
8.3.20.0000.00720.16
8.3.10.0000.00823.66
8.3.00.0080.00019.38
8.2.250.0040.00417.36
8.2.240.0130.00617.09
8.2.230.0080.00422.58
8.2.220.0030.01737.54
8.2.210.0060.00326.77
8.2.200.0030.00618.54
8.2.190.0140.00716.60
8.2.180.0070.00716.63
8.2.170.0040.01122.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0130.00624.66
8.2.130.0070.00726.16
8.2.120.0000.00722.27
8.2.110.0120.00022.11
8.2.100.0040.00717.91
8.2.90.0060.00318.16
8.2.80.0000.00819.05
8.2.70.0040.00417.75
8.2.60.0000.00918.05
8.2.50.0030.00618.07
8.2.40.0000.00920.00
8.2.30.0000.00818.12
8.2.20.0000.00817.79
8.2.10.0050.00218.05
8.2.00.0070.00317.75
8.1.300.0160.00017.82
8.1.290.0000.00918.88
8.1.280.0100.01025.92
8.1.270.0060.00322.05
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00322.54
8.1.230.0000.01220.97
8.1.220.0040.00417.79
8.1.210.0030.00618.83
8.1.200.0040.00417.48
8.1.190.0040.00417.51
8.1.180.0090.00019.00
8.1.170.0040.00418.58
8.1.160.0050.00321.83
8.1.150.0060.00318.66
8.1.140.0000.00817.48
8.1.130.0000.00717.90
8.1.120.0030.00517.66
8.1.110.0000.01017.52
8.1.100.0000.00717.61
8.1.90.0040.00417.56
8.1.80.0000.00717.42
8.1.70.0030.00317.50
8.1.60.0040.00417.61
8.1.50.0060.00317.65
8.1.40.0030.00617.64
8.1.30.0000.00817.71
8.1.20.0110.00317.75
8.1.10.0080.00017.64
8.1.00.0000.00717.67
8.0.300.0070.00020.21
8.0.290.0070.00017.28
8.0.280.0000.00718.47
8.0.270.0060.00316.97
8.0.260.0000.00617.39
8.0.250.0000.00717.13
8.0.240.0040.00417.17
8.0.230.0030.00316.96
8.0.220.0050.00316.96
8.0.210.0000.00817.05
8.0.200.0070.00017.00
8.0.190.0040.00417.13
8.0.180.0040.00417.11
8.0.170.0040.00417.05
8.0.160.0070.00017.02
8.0.150.0030.00316.98
8.0.140.0000.00716.88
8.0.130.0000.00613.45
8.0.120.0000.00816.86
8.0.110.0040.00417.09
8.0.100.0000.00816.89
8.0.90.0050.00316.83
8.0.80.0120.00417.01
8.0.70.0000.00716.83
8.0.60.0000.00716.95
8.0.50.0040.00417.09
8.0.30.0100.01117.07
8.0.20.0130.00517.40
8.0.10.0040.00417.01
8.0.00.0100.00716.78
7.4.330.0030.00415.00
7.4.320.0030.00316.66
7.4.300.0030.00316.64
7.4.290.0000.00716.73
7.4.280.0110.00316.66
7.4.270.0070.00016.63
7.4.260.0000.00716.75
7.4.250.0000.00716.59
7.4.240.0040.00416.75
7.4.230.0040.00416.53
7.4.220.0070.01116.76
7.4.210.0100.00416.59
7.4.200.0040.00316.66
7.4.190.0050.00216.70
7.4.160.0100.00516.69
7.4.150.0140.00317.40
7.4.140.0100.00717.86
7.4.130.0070.01016.73
7.4.120.0080.01016.81
7.4.110.0100.00716.65
7.4.100.0120.00616.79
7.4.90.0040.01316.44
7.4.80.0160.00319.39
7.4.70.0100.00716.68
7.4.60.0160.00916.67
7.4.50.0030.00616.48
7.4.40.0100.00322.77
7.4.30.0030.01716.64
7.4.10.0060.01016.68
7.4.00.0060.00815.60
7.3.330.0000.00713.36
7.3.320.0000.00513.20
7.3.310.0070.00016.53
7.3.300.0040.00416.45
7.3.290.0130.00616.45
7.3.280.0100.01016.40
7.3.270.0100.00717.40
7.3.260.0150.00916.72
7.3.250.0120.00516.61
7.3.240.0150.00316.51
7.3.230.0030.01516.52
7.3.210.0160.00316.51
7.3.200.0130.00619.39
7.3.190.0100.01316.32
7.3.180.0040.01116.64
7.3.170.0100.00616.58
7.3.160.0060.00916.46
7.3.130.0090.00916.51
7.3.120.0100.00615.41
7.3.110.0140.00315.73
7.3.100.0130.00715.74
7.3.90.0080.00815.79
7.3.80.0020.01115.59
7.3.70.0110.00515.84
7.3.60.0070.01115.65
7.3.50.0020.01615.75
7.3.40.0110.00715.52
7.3.30.0120.00515.58
7.3.20.0120.00516.66
7.3.10.0130.00316.74
7.3.00.0040.00916.66
7.2.330.0110.00616.96
7.2.320.0070.01016.46
7.2.310.0110.00716.89
7.2.300.0110.00516.52
7.2.290.0060.01016.75
7.2.260.0090.00616.89
7.2.250.0080.01116.10
7.2.240.0070.01416.15
7.2.230.0050.01616.00
7.2.220.0070.01315.83
7.2.210.0080.00815.69
7.2.200.0050.01115.96
7.2.190.0060.00815.72
7.2.180.0070.01016.05
7.2.170.0080.01015.96
7.2.160.0140.00716.78
7.2.150.0140.00816.69
7.2.140.0030.01316.73
7.2.130.0120.00616.77
7.2.120.0090.00916.87
7.2.110.0130.00316.73
7.2.100.0070.01016.65
7.2.90.0070.01016.57
7.2.80.0060.01216.67
7.2.70.0130.00316.83
7.2.60.0070.00916.89
7.2.50.0030.01316.88
7.2.40.0100.00716.68
7.2.30.0160.00316.71
7.2.20.0120.00616.87
7.2.10.0140.00416.75
7.2.00.0060.01018.14
7.1.330.0120.00615.87
7.1.320.0060.00815.84
7.1.310.0080.01215.71
7.1.300.0030.01415.76
7.1.290.0050.00815.61
7.1.280.0120.00415.75
7.1.270.0020.01315.80
7.1.260.0060.00815.72
7.1.250.0380.00915.50
7.1.240.0140.00315.37
7.1.230.0040.01215.44
7.1.220.0160.00015.43
7.1.210.0100.00615.66
7.1.200.0080.00715.71
7.1.190.0100.00615.44
7.1.180.0070.00715.44
7.1.170.0030.01115.71
7.1.160.0140.01315.51
7.1.150.0140.00315.57
7.1.140.0170.00015.50
7.1.130.0110.00815.32
7.1.120.0120.00815.39
7.1.110.0080.00815.51
7.1.100.0090.00916.83
7.1.90.0090.00616.72
7.1.80.0050.01016.75
7.1.70.0070.00816.71
7.1.60.0140.01122.56
7.1.50.0160.00822.40
7.1.40.0150.00725.05
7.1.30.0170.00725.15
7.1.20.0120.00925.06
7.1.10.0090.00716.27
7.1.00.0060.02918.13
7.0.330.0120.00415.33
7.0.320.0100.00715.39
7.0.310.0130.00615.21
7.0.300.0030.01415.25
7.0.290.0120.00415.11
7.0.280.0060.01415.09
7.0.270.0220.00615.27
7.0.260.0100.01015.20
7.0.250.0060.00915.32
7.0.240.0050.01016.47
7.0.230.0060.01016.65
7.0.220.0080.00716.36
7.0.210.0070.01116.00
7.0.200.0050.01016.30
7.0.190.0130.00416.06
7.0.180.0080.00915.83
7.0.170.0030.01215.82
7.0.160.0100.00715.90
7.0.150.0030.01215.84
7.0.140.0060.03117.88
7.0.130.0050.01115.99
7.0.120.0040.01215.98
7.0.110.0080.01015.75
7.0.100.0140.01717.27
7.0.90.0070.02217.23
7.0.80.0080.03117.18
7.0.70.0060.02917.23
7.0.60.0110.03017.15
7.0.50.0120.02817.34
7.0.40.0060.02617.31
7.0.30.0070.02317.28
7.0.20.0060.03617.29
7.0.10.0090.03617.16
7.0.00.0080.03217.31
5.6.400.0150.00615.90
5.6.390.0080.01215.91
5.6.380.0110.01515.74
5.6.370.0070.01116.11
5.6.360.0160.00015.74
5.6.350.0060.01215.85
5.6.340.0070.01116.12
5.6.330.0130.00615.85
5.6.320.0060.01915.98
5.6.310.0060.01215.76
5.6.300.0060.03518.34
5.6.290.0070.03418.37
5.6.280.0050.04719.29
5.6.270.0110.03718.33
5.6.260.0120.03118.45
5.6.250.0090.03319.21
5.6.240.0060.05019.21
5.6.230.0090.05019.13
5.6.220.0100.04819.23
5.6.210.0100.04518.99
5.6.200.0140.04419.26
5.6.190.0120.04819.27
5.6.180.0130.05219.17
5.6.170.0110.04719.24
5.6.160.0090.04719.22
5.6.150.0060.05919.24
5.6.140.0100.05019.31
5.6.130.0150.04619.27
5.6.120.0090.05019.16
5.6.110.0110.04319.31
5.6.100.0060.05519.27
5.6.90.0070.05219.20
5.6.80.0090.03918.84
5.6.70.0180.04418.81
5.6.60.0090.04018.71
5.6.50.0100.03718.90
5.6.40.0020.05218.77
5.6.30.0060.04918.92
5.6.20.0100.04718.79
5.6.10.0170.05018.84
5.6.00.0120.05018.93
5.5.380.0090.05617.86
5.5.370.0130.04217.93
5.5.360.0100.04617.95
5.5.350.0070.05717.91
5.5.340.0070.05418.13
5.5.330.0120.03818.27
5.5.320.0150.05018.20
5.5.310.0110.03818.19
5.5.300.0090.05018.19
5.5.290.0120.05618.26
5.5.280.0120.05018.20
5.5.270.0110.04518.28
5.5.260.0060.05518.20
5.5.250.0070.05418.07
5.5.240.0090.04717.70
5.5.230.0110.04317.81
5.5.220.0100.04217.81
5.5.210.0150.04417.78
5.5.200.0090.03817.78
5.5.190.0110.04217.85
5.5.180.0080.04617.74
5.5.170.0090.01815.89
5.5.160.0170.04917.80
5.5.150.0080.03817.81
5.5.140.0090.05017.73
5.5.130.0060.04717.79
5.5.120.0100.05517.78
5.5.110.0110.05317.86
5.5.100.0140.04717.71
5.5.90.0140.05017.69
5.5.80.0090.04217.63
5.5.70.0060.05017.72
5.5.60.0110.04017.71
5.5.50.0110.03217.72
5.5.40.0120.04617.76
5.5.30.0150.04617.71
5.5.20.0110.03717.71
5.5.10.0130.04717.81
5.5.00.0100.04417.56
5.4.450.0100.04617.16
5.4.440.0090.05117.18
5.4.430.0060.05817.11
5.4.420.0070.04517.11
5.4.410.0080.04217.07
5.4.400.0050.04517.01
5.4.390.0060.05116.83
5.4.380.0100.04016.87
5.4.370.0080.04817.01
5.4.360.0150.04316.85
5.4.350.0100.03916.90
5.4.340.0110.05316.94
5.4.330.0060.00912.72
5.4.320.0100.04716.89
5.4.310.0090.04416.82
5.4.300.0150.04216.92
5.4.290.0110.03716.86
5.4.280.0100.04616.80
5.4.270.0080.04116.90
5.4.260.0090.05516.84
5.4.250.0120.04316.90
5.4.240.0100.04916.94
5.4.230.0050.04916.99
5.4.220.0140.04017.02
5.4.210.0050.04017.01
5.4.200.0070.04916.87
5.4.190.0130.03517.02
5.4.180.0140.03816.92
5.4.170.0110.04216.88
5.4.160.0080.03616.89
5.4.150.0090.04816.91
5.4.140.0120.04215.25
5.4.130.0090.04315.25
5.4.120.0120.04215.14
5.4.110.0120.03415.17
5.4.100.0110.04315.20
5.4.90.0160.02715.16
5.4.80.0110.04215.24
5.4.70.0080.04115.29
5.4.60.0090.04115.32
5.4.50.0120.03815.26
5.4.40.0050.04315.29
5.4.30.0130.04315.15
5.4.20.0130.03615.14
5.4.10.0090.04815.18
5.4.00.0070.04514.95
5.3.290.0090.04714.25
5.3.280.0130.04714.27
5.3.270.0100.03814.24
5.3.260.0080.05014.22
5.3.250.0070.04014.24
5.3.240.0090.03714.24
5.3.230.0100.03814.28
5.3.220.0080.04514.16
5.3.210.0090.05514.16
5.3.200.0150.03914.11
5.3.190.0150.04214.09
5.3.180.0060.05314.26
5.3.170.0120.03314.13
5.3.160.0080.04614.22
5.3.150.0090.05014.25
5.3.140.0150.04214.07
5.3.130.0110.03614.20
5.3.120.0170.04414.09
5.3.110.0110.05214.17
5.3.100.0080.03313.89
5.3.90.0120.03813.72
5.3.80.0070.05313.79
5.3.70.0060.04513.78
5.3.60.0070.03513.81
5.3.50.0060.04713.83
5.3.40.0110.03513.76
5.3.30.0070.04413.79
5.3.20.0070.04713.57
5.3.10.0110.03613.52
5.3.00.0130.04313.48
5.2.170.0090.02511.52
5.2.160.0070.03811.59
5.2.150.0100.03211.48
5.2.140.0060.03511.52
5.2.130.0100.03211.47
5.2.120.0080.02711.55
5.2.110.0060.02911.43
5.2.100.0080.04011.46
5.2.90.0110.03311.55
5.2.80.0070.03311.46
5.2.70.0060.03811.50
5.2.60.0020.03611.36
5.2.50.0100.03311.46
5.2.40.0090.03611.42
5.2.30.0080.03511.47
5.2.20.0050.03511.41
5.2.10.0110.03111.32
5.2.00.0100.03011.15
5.1.60.0080.02910.65
5.1.50.0100.02510.66
5.1.40.0020.03210.61
5.1.30.0080.03310.83
5.1.20.0050.02610.92
5.1.10.0090.02310.67
5.1.00.0070.03310.68
5.0.50.0050.0269.83
5.0.40.0030.0279.79
5.0.30.0050.0379.70
5.0.20.0100.0159.70
5.0.10.0100.0229.63
5.0.00.0050.0389.63
4.4.90.0050.0189.14
4.4.80.0070.0179.14
4.4.70.0030.0199.14
4.4.60.0020.0199.14
4.4.50.0030.0209.14
4.4.40.0070.0259.14
4.4.30.0030.0219.14
4.4.20.0050.0199.14
4.4.10.0080.0159.14
4.4.00.0050.0299.14
4.3.110.0050.0199.14
4.3.100.0050.0179.14
4.3.90.0030.0169.14
4.3.80.0030.0279.14
4.3.70.0030.0199.14
4.3.60.0040.0189.14
4.3.50.0010.0219.14
4.3.40.0030.0289.14
4.3.30.0040.0209.14
4.3.20.0020.0239.14
4.3.10.0020.0219.14
4.3.00.0050.0159.14

preferences:
36.4 ms | 403 KiB | 5 Q