3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/New_York'); echo date_default_timezone_get()."\n"; $dateStr = "20230120171222"; $timestamp1 = strtotime($dateStr); var_dump($timestamp1); $timestamp2 = strtotime($dateStr." UTC"); var_dump($timestamp2);

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.140.0130.01017.73
8.4.130.0080.00517.81
8.4.120.0110.00920.40
8.4.110.0120.00622.39
8.4.100.0130.00817.90
8.4.90.0120.00820.42
8.4.80.0060.00219.08
8.4.70.0140.00618.89
8.4.60.0060.00320.63
8.4.50.0100.01020.38
8.4.40.0080.00819.56
8.4.30.0160.00320.54
8.4.20.0110.00819.69
8.4.10.0160.00323.87
8.3.270.0110.00916.43
8.3.260.0140.00516.79
8.3.250.0090.00918.73
8.3.240.0100.00916.85
8.3.230.0110.00716.71
8.3.220.0040.00418.80
8.3.210.0120.00816.86
8.3.200.0060.00316.83
8.3.190.0100.01016.97
8.3.180.0120.00618.64
8.3.170.0050.00319.11
8.3.160.0090.00916.48
8.3.150.0150.00416.66
8.3.140.0060.00316.67
8.3.130.0080.00018.49
8.3.120.0080.00020.89
8.3.110.0060.00320.94
8.3.100.0090.00016.77
8.3.90.0080.00026.77
8.3.80.0100.00018.43
8.3.70.0070.01116.63
8.3.60.0040.01118.53
8.3.50.0100.01018.55
8.3.40.0070.01020.29
8.3.30.0140.00018.88
8.3.20.0050.00524.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0090.01016.59
8.2.280.0130.00618.29
8.2.270.0070.01116.79
8.2.260.0030.00517.32
8.2.250.0120.00619.17
8.2.240.0050.00319.14
8.2.230.0030.00622.58
8.2.220.0050.00324.06
8.2.210.0100.01026.77
8.2.200.0080.00316.50
8.2.190.0110.01118.54
8.2.180.0060.00916.88
8.2.170.0070.00719.04
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0100.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00026.16
8.2.110.0090.00022.01
8.2.100.0070.00418.03
8.2.90.0040.00418.16
8.2.80.0040.00420.35
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.04
8.2.20.0080.00817.77
8.2.10.0030.00917.93
8.2.00.0130.00317.95
8.1.330.0120.00721.77
8.1.320.0110.00818.04
8.1.310.0110.00716.56
8.1.300.0040.00418.03
8.1.290.0040.00430.84
8.1.280.0090.01225.92
8.1.270.0090.00023.90
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.54
8.1.230.0040.01120.75
8.1.220.0030.00517.74
8.1.210.0000.00818.82
8.1.200.0030.00617.47
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00718.62
8.1.160.0030.00318.96
8.1.150.0070.00917.67
8.1.140.0120.00517.69
8.1.130.0160.00017.69
8.1.120.0090.00617.73
8.1.110.0160.00017.59
8.1.100.0130.00317.58
8.1.90.0080.00817.63
8.1.80.0110.00517.64
8.1.70.0110.00517.72
8.1.60.0140.00517.69
8.1.50.0120.00817.70
8.1.40.0120.00617.81
8.1.30.0150.00417.82
8.1.20.0090.00617.74
8.1.10.0140.00017.59
8.1.00.0120.00317.59
8.0.300.0000.00720.04
8.0.290.0030.00616.88
8.0.280.0030.00318.49
8.0.270.0160.00016.99
8.0.260.0070.00716.99
8.0.250.0100.00316.95
8.0.240.0140.00017.05
8.0.230.0070.00716.98
8.0.220.0070.00716.89
8.0.210.0070.00716.89
8.0.200.0090.00317.04
8.0.190.0000.01416.92
8.0.180.0050.00717.04
8.0.170.0060.00616.94
8.0.160.0140.00017.05
8.0.150.0040.00917.00
8.0.140.0100.00617.00
8.0.130.0130.00316.93
8.0.120.0130.00316.89
8.0.110.0070.00716.98
8.0.100.0080.00716.98
8.0.90.0050.00917.02
8.0.80.0100.00216.83
8.0.70.0090.00316.96
8.0.60.0060.00616.96
8.0.50.0040.00716.88
8.0.30.0040.00716.93
8.0.20.0100.00317.05
8.0.10.0060.00617.04

preferences:
33.67 ms | 403 KiB | 5 Q