3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = '2023-09-05 12:23:34'; var_dump( (new DateTime($time, new DateTimezone('UTC')))->format('c'), (new DateTime($time, new DateTimezone('US/Eastern')))->format('c'), (new DateTime($time, new DateTimezone('America/New_York')))->format('c') );

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.4.120.0130.00720.35
8.4.110.0100.01022.41
8.4.100.0140.00817.96
8.4.90.0130.00819.00
8.4.80.0120.00918.06
8.4.70.0130.00717.59
8.4.60.0080.00918.84
8.4.50.0140.00820.35
8.4.40.0060.01317.79
8.4.30.0120.00320.38
8.4.20.0150.00617.98
8.4.10.0060.00319.53
8.3.250.0140.00518.93
8.3.240.0060.01516.48
8.3.230.0060.00616.83
8.3.220.0130.00617.23
8.3.210.0130.00918.27
8.3.200.0050.00316.55
8.3.190.0090.00917.21
8.3.180.0070.01118.73
8.3.170.0120.00317.00
8.3.160.0000.01817.19
8.3.150.0090.00616.79
8.3.140.0040.00416.61
8.3.130.0060.00318.60
8.3.120.0080.00418.63
8.3.110.0070.00320.94
8.3.100.0150.00324.06
8.3.90.0140.00626.77
8.3.80.0060.00317.97
8.3.70.0040.01216.63
8.3.60.0110.01118.43
8.3.50.0120.00316.59
8.3.40.0210.00021.73
8.3.30.0120.00619.13
8.3.20.0060.00324.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0060.00320.44
8.2.280.0120.00418.42
8.2.270.0040.01217.12
8.2.260.0070.01117.37
8.2.250.0130.00716.91
8.2.240.0070.00318.86
8.2.230.0000.00922.58
8.2.220.0070.00337.54
8.2.210.0000.00826.77
8.2.200.0030.00616.63
8.2.190.0110.00716.88
8.2.180.0000.02116.88
8.2.170.0040.01118.96
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0070.00421.07
8.2.100.0070.00517.67
8.2.90.0270.00317.57
8.2.80.0240.00717.57
8.2.70.0260.00417.57
8.2.60.0320.00017.57
8.2.50.0260.01017.57
8.2.40.0220.00617.57
8.2.30.0230.00717.75
8.2.20.0110.00417.63
8.2.10.0180.00917.63
8.2.00.0260.00617.63
8.1.330.0110.00821.95
8.1.320.0150.00516.32
8.1.310.0120.00616.71
8.1.300.0190.00018.68
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0130.00624.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.27
8.1.230.0180.00018.91
8.1.220.0250.00217.57
8.1.210.0250.00617.57
8.1.200.0250.00317.57
8.1.190.0230.00317.57
8.1.180.0190.01017.57
8.1.170.0280.00017.57
8.1.160.0230.00417.57
8.1.150.0190.00817.57
8.1.140.0200.00817.57
8.1.130.0170.00917.57
8.1.120.0240.00317.59
8.1.110.0230.00317.57
8.1.100.0180.00917.57
8.1.90.0170.01017.57
8.1.80.0220.00517.57
8.1.70.0270.00017.57
8.1.60.0220.00417.63
8.1.50.0150.01217.57
8.1.40.0240.00317.57
8.1.30.0250.00317.63
8.1.20.0200.00817.57
8.1.10.0230.00417.57
8.1.00.0230.00617.57
8.0.300.0270.00017.57
8.0.290.0190.00917.57
8.0.280.0240.00317.57
8.0.270.0160.01217.57
8.0.260.0290.00017.57
8.0.250.0250.00317.57
8.0.240.0300.00417.57
8.0.230.0260.00517.57
8.0.220.0220.00717.57
8.0.210.0220.00917.57
8.0.200.0290.00017.57
8.0.190.0230.00817.57
8.0.180.0240.01017.57
8.0.170.0170.00817.57
8.0.160.0250.00317.57
8.0.150.0160.00817.57
8.0.140.0250.00317.57
8.0.130.0230.00517.57
8.0.120.0240.00517.57
8.0.110.0230.00317.57
8.0.100.0260.00317.57
8.0.90.0220.00617.57
8.0.80.0220.00617.57
8.0.70.0210.00817.57
8.0.60.0230.00517.57
8.0.50.0250.00517.57
8.0.30.0290.00017.57
8.0.20.0210.00517.57
8.0.10.0290.00017.57

preferences:
26.18 ms | 403 KiB | 5 Q