3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date=date_create("2013-03-15"); echo "date =>" . date_format($date,"Y-m-d"); echo " ******** "; $date1= clone $date; date_add($date1,date_interval_create_from_date_string("40 days")); echo "date after modify date1 =>" . date_format($date1,"Y-m-d"); ?>

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.01018.31
8.3.50.0070.00716.61
8.3.40.0200.00018.73
8.3.30.0140.00018.81
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.180.0140.00325.92
8.2.170.0090.00619.21
8.2.160.0070.01422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00721.02
8.2.110.0070.00322.25
8.2.100.0070.00418.09
8.2.90.0030.00618.00
8.2.80.0030.00517.97
8.2.70.0040.00418.05
8.2.60.0040.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00618.04
8.2.30.0060.00318.23
8.2.20.0070.00018.08
8.2.10.0050.00319.42
8.2.00.0070.00019.42
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00322.77
8.1.230.0110.00417.89
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0060.00317.61
8.1.190.0040.00417.47
8.1.180.0000.00818.10
8.1.170.0080.00018.73
8.1.160.0050.00218.94
8.1.150.0040.00418.90
8.1.140.0070.00018.96
8.1.130.0030.00320.21
8.1.120.0080.00017.66
8.1.110.0030.00617.61
8.1.100.0080.00017.65
8.1.90.0070.00017.70
8.1.80.0090.00017.61
8.1.70.0040.00417.60
8.1.60.0060.00317.58
8.1.50.0000.00817.64
8.1.40.0040.00417.78
8.1.30.0050.00217.82
8.1.20.0000.00917.78
8.1.10.0050.00317.65
8.1.00.0030.00617.65
8.0.300.0040.00418.77
8.0.290.0090.00217.00
8.0.280.0070.00018.57
8.0.270.0020.00518.13
8.0.260.0000.00818.63
8.0.250.0000.00717.20
8.0.240.0000.00717.07
8.0.230.0030.00317.10
8.0.220.0040.00417.08
8.0.210.0000.00817.09
8.0.200.0000.00717.12
8.0.190.0040.00317.20
8.0.180.0040.00417.12
8.0.170.0090.00017.13
8.0.160.0000.00717.17
8.0.150.0000.00816.97
8.0.140.0050.00317.11
8.0.130.0030.00313.53
8.0.120.0000.00817.02
8.0.110.0000.00716.95
8.0.100.0070.00017.10
8.0.90.0040.00417.06
8.0.80.0070.00817.11
8.0.70.0070.00016.94
8.0.60.0000.00716.95
8.0.50.0000.00817.05
8.0.30.0090.00917.25
8.0.20.0140.00817.45
8.0.10.0000.00717.26
8.0.00.0060.01216.94
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0000.00716.73
7.4.290.0040.00416.48
7.4.280.0000.00716.63
7.4.270.0030.00616.64
7.4.260.0050.00013.22
7.4.250.0030.00516.60
7.4.240.0040.00416.64
7.4.230.0000.00716.54
7.4.220.0040.00416.73
7.4.210.0060.00816.72
7.4.200.0040.00416.68
7.4.130.0150.00416.48
7.4.120.0070.01116.62
7.4.110.0120.00616.63
7.4.100.0090.00916.71
7.4.90.0100.00716.43
7.4.80.0100.00716.60
7.4.70.0110.00616.73
7.4.60.0090.00916.74
7.4.50.0100.00716.55
7.4.40.0050.01316.61
7.4.30.0070.01116.57
7.4.20.0160.00316.47
7.4.10.0130.01016.68
7.4.00.0090.00916.75
7.3.330.0000.00716.51
7.3.320.0050.00013.28
7.3.310.0040.00416.50
7.3.300.0040.00416.46
7.3.290.0070.00816.42
7.3.260.0140.00316.59
7.3.250.0140.00316.59
7.3.240.0130.01016.74
7.3.230.0130.01016.57
7.3.220.0060.01216.65
7.3.210.0100.00716.61
7.3.200.0100.00616.62
7.3.190.0030.01316.51
7.3.180.0060.01516.75
7.3.170.0090.00916.52
7.3.160.0090.00916.63
7.3.150.0100.00716.68
7.3.140.0070.01016.56
7.3.130.0120.00616.68
7.3.120.0060.01016.45
7.3.110.0100.00716.67
7.3.100.0100.00716.77
7.3.90.0100.00616.67
7.3.80.0180.00016.68
7.3.70.0030.01916.58
7.3.60.0110.00716.54
7.3.50.0100.00716.68
7.3.40.0100.01016.60
7.3.30.0180.00616.64
7.3.20.0150.00316.50
7.3.10.0030.01416.58
7.3.00.0140.00316.73

preferences:
34.67 ms | 400 KiB | 5 Q