3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = "2020-02-01"; $endDate = "2020-03-11"; date_default_timezone_set("Europe/Berlin"); $diff = date_create($startDate)->diff(date_create($endDate)); $test = date_create($startDate)->add($diff)->format("Y-m-d"); echo "test: ".$test." expected: ".$endDate;

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.0100.01016.50
8.3.50.0100.00616.52
8.3.40.0070.01019.33
8.3.30.0100.00318.62
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0040.01222.96
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0030.00620.11
8.2.100.0100.00317.84
8.2.90.0040.00417.88
8.2.80.0050.00318.94
8.2.70.0030.00617.93
8.2.60.0000.00718.16
8.2.50.0040.00419.13
8.2.40.0060.00321.14
8.2.30.0050.00219.24
8.2.20.0040.00418.11
8.2.10.0040.00419.19
8.2.00.0040.00419.23
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00623.83
8.1.230.0030.00920.97
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0090.00017.48
8.1.190.0060.00317.47
8.1.180.0040.00418.86
8.1.170.0060.00318.63
8.1.160.0040.00418.98
8.1.150.0030.00318.99
8.1.140.0000.00818.89
8.1.130.0070.00020.01
8.1.120.0050.00317.70
8.1.110.0000.00717.60
8.1.100.0040.00417.50
8.1.90.0000.00717.55
8.1.80.0000.00817.67
8.1.70.0040.00417.52
8.1.60.0000.00817.58
8.1.50.0040.00417.54
8.1.40.0040.00417.53
8.1.30.0040.00417.62
8.1.20.0030.00617.73
8.1.10.0050.00317.68
8.1.00.0000.00917.52
8.0.300.0000.00718.77
8.0.290.0050.00316.88
8.0.280.0000.00718.44
8.0.270.0000.00716.94
8.0.260.0000.00818.51
8.0.250.0030.00317.14
8.0.240.0050.00217.03
8.0.230.0030.00517.02
8.0.220.0000.00716.96
8.0.210.0000.00716.98
8.0.200.0070.00017.05
8.0.190.0030.00317.16
8.0.180.0040.00417.07
8.0.170.0040.00417.09
8.0.160.0040.00417.11
8.0.150.0000.00717.02
8.0.140.0000.00716.96
8.0.130.0030.00313.51
8.0.120.0040.00417.07
8.0.110.0000.00717.03
8.0.100.0070.00017.18
8.0.90.0030.00516.97
8.0.80.0060.00916.98
8.0.70.0080.00017.03
8.0.60.0000.00716.97
8.0.50.0040.00416.88
8.0.30.0030.01317.04
8.0.20.0090.00917.32
8.0.10.0080.00016.98
8.0.00.0060.01316.85
7.4.330.0000.00515.55
7.4.320.0060.00016.70
7.4.300.0030.00316.61
7.4.290.0030.00316.62
7.4.280.0090.00016.58
7.4.270.0040.00416.61
7.4.260.0000.00713.38
7.4.250.0000.00716.60
7.4.240.0060.00316.72
7.4.230.0000.00816.36
7.4.220.0060.00216.55
7.4.210.0050.01216.63
7.4.200.0000.00716.66
7.4.130.0120.01016.71
7.4.120.0140.00316.66
7.4.110.0130.00316.64
7.4.100.0140.00416.64
7.4.90.0060.01216.64
7.4.80.0170.00619.39
7.4.70.0030.01316.61
7.4.60.0130.00316.62
7.4.50.0090.01116.26
7.4.40.0110.00716.71
7.4.30.0080.01616.43
7.4.20.0030.01316.58
7.4.10.0060.01116.39
7.4.00.0120.00616.27
7.3.330.0040.00716.44
7.3.320.0000.00713.14
7.3.310.0000.00716.22
7.3.300.0000.00616.37
7.3.290.0090.00716.42
7.3.280.0100.01016.47
7.3.260.0090.00816.44
7.3.230.0130.00316.50
7.3.210.0070.01016.59
7.3.200.0160.00016.68
7.3.190.0090.00616.46
7.3.180.0060.01116.18
7.3.170.0100.00716.31
7.3.160.0140.00616.19
7.3.150.0060.01416.33
7.3.140.0150.00616.54
7.3.130.0100.00716.20
7.3.120.0100.00716.06
7.3.110.0130.00516.41
7.3.100.0070.01116.22
7.3.90.0080.00816.06
7.3.80.0070.01016.43
7.3.70.0100.00616.44
7.3.60.0030.01316.50
7.3.50.0040.01816.39
7.3.40.0110.01116.49
7.3.30.0100.01016.41
7.3.20.0100.00716.45
7.3.10.0160.01318.18
7.3.00.0180.00018.29
7.2.330.0070.01116.50
7.2.310.0000.01616.58
7.2.300.0130.00916.28
7.2.290.0120.00816.57
7.2.280.0090.00916.68
7.2.270.0140.00916.53
7.2.260.0100.01016.42
7.2.250.0050.01516.26
7.2.240.0120.00616.32
7.2.230.0100.00716.57
7.2.220.0030.01416.86
7.2.210.0070.01016.50
7.2.200.0170.00616.71
7.2.190.0100.01316.79
7.2.180.0100.01416.68
7.2.170.0060.01616.75
7.2.160.0030.01416.69
7.2.150.0150.00816.75
7.2.140.0110.01118.61
7.2.130.0070.01518.56
7.2.120.0160.00718.51
7.2.110.0160.00618.55
7.2.100.0060.01518.75
7.2.90.0090.00918.52
7.2.80.0120.00618.55
7.2.70.0110.00618.42
7.2.60.0130.00518.47
7.2.50.0160.00418.65
7.2.40.0040.01418.59
7.2.30.0140.01118.64
7.2.20.0090.00918.49
7.2.10.0110.00718.47
7.2.00.0060.01318.41

preferences:
61.6 ms | 400 KiB | 5 Q