3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); var_dump(date('Y-m-d H:i:s',strtotime('1959'))); var_dump(date('Y-m-d H:i:s',strtotime('1960'))); var_dump(date('Y-m-d',mktime(0, year: 1959)));

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.0080.00819.48
8.4.110.0110.00824.02
8.4.100.0120.00817.78
8.4.90.0140.00520.44
8.4.80.0150.00518.95
8.4.70.0090.00619.16
8.4.60.0030.00720.82
8.4.50.0100.00518.39
8.4.40.0120.00817.63
8.4.30.0110.00724.08
8.4.20.0100.00019.84
8.4.10.0060.00919.30
8.3.250.0130.00516.45
8.3.240.0120.00616.57
8.3.230.0120.00816.34
8.3.220.0120.00618.98
8.3.210.0090.01216.77
8.3.200.0050.00616.25
8.3.190.0100.00117.08
8.3.180.0160.00518.54
8.3.170.0070.01118.80
8.3.160.0060.01220.76
8.3.150.0110.00417.29
8.3.140.0070.01117.28
8.3.130.0040.00418.43
8.3.120.0030.01219.00
8.3.110.0100.00216.61
8.3.100.0150.00316.56
8.3.90.0130.00318.42
8.3.80.0110.00016.48
8.3.70.0100.00316.64
8.3.60.0070.00418.23
8.3.50.0030.00916.37
8.3.40.0000.01119.37
8.3.30.0060.00617.54
8.3.20.0070.00319.35
8.3.10.0040.00817.48
8.3.00.0080.00817.47
8.2.290.0140.00416.62
8.2.280.0090.00918.70
8.2.270.0130.00616.48
8.2.260.0110.00717.27
8.2.250.0050.00318.25
8.2.240.0070.00318.48
8.2.230.0030.00716.41
8.2.220.0070.00318.41
8.2.210.0060.00616.47
8.2.200.0100.00018.42
8.2.190.0110.00016.53
8.2.180.0030.00716.40
8.2.170.0040.00817.80
8.2.160.0000.01117.54
8.2.150.0060.00319.29
8.2.140.0120.00017.59
8.2.130.0070.00419.17
8.2.120.0110.00417.33
8.2.110.0080.01216.67
8.2.100.0090.00917.28
8.2.90.0030.01617.70
8.2.80.0200.00017.33
8.2.70.0060.01017.23
8.2.60.0150.00417.01
8.2.50.0190.00017.28
8.2.40.0140.00316.75
8.2.30.0110.00517.26
8.2.20.0150.00317.27
8.2.10.0130.00517.10
8.2.00.0140.00417.48
8.1.330.0110.00816.12
8.1.320.0110.00816.17
8.1.310.0120.00316.75
8.1.300.0120.00017.97
8.1.290.0110.00716.02
8.1.280.0070.01115.92
8.1.270.0110.00716.89
8.1.260.0200.00016.79
8.1.250.0120.00617.26
8.1.240.0000.01617.01
8.1.230.0110.00617.33
8.1.220.0140.00317.34
8.1.210.0100.00717.32
8.1.200.0140.00317.03
8.1.190.0170.00016.81
8.1.180.0170.00016.82
8.1.170.0100.00717.07
8.1.160.0120.00317.47
8.1.150.0170.00017.13
8.1.140.0120.00616.72
8.1.130.0160.00017.36
8.1.120.0120.00617.11
8.1.110.0160.00417.27
8.1.100.0190.00017.48
8.1.90.0140.00317.50
8.1.80.0050.01017.43
8.1.70.0130.00317.21
8.1.60.0130.00317.19
8.1.50.0140.00417.38
8.1.40.0120.00316.78
8.1.30.0170.00017.41
8.1.20.0170.00016.93
8.1.10.0080.01217.01
8.1.00.0190.00016.61

preferences:
26.24 ms | 403 KiB | 5 Q