3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row3 = array('TakeOutDate' => '2019-02-10', 'ReturnDate' => '2019-02-17', 'DaysRented' => 7); $ARTakeOut = new DateTime($row3['TakeOutDate']); $ARReturn = new DateTime($row3['ReturnDate']); $ARDaysRented = $row3['DaysRented']; $ARDaysRented = (round($ARDaysRented/2)); $MidDate = clone $ARTakeOut; $MidDate->modify("+ $ARDaysRented days"); echo $MidDate->format('Y-m-d'); ?> <br> <?PHP echo $ARTakeOut->format('Y-m-d'); ?> <br> <?PHP echo $ARReturn->format('Y-m-d'); ?> <br>

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.5.10.0150.00316.95
8.5.00.0120.00920.15
8.4.150.0010.00214.05
8.4.140.0110.01017.51
8.4.130.0050.00619.12
8.4.120.0050.00423.94
8.4.110.0100.01018.82
8.4.100.0100.01018.83
8.4.90.0100.01120.46
8.4.80.0120.00818.76
8.4.70.0100.00718.74
8.4.60.0120.00918.77
8.4.50.0120.01120.74
8.4.40.0030.01619.72
8.4.30.0130.00617.69
8.4.20.0040.01220.56
8.4.10.0030.00619.82
8.3.280.0090.01020.39
8.3.270.0080.01316.73
8.3.260.0120.00816.73
8.3.250.0120.00719.06
8.3.240.0100.00917.22
8.3.230.0140.00616.73
8.3.220.0070.01019.01
8.3.210.0130.00718.47
8.3.200.0050.00316.96
8.3.190.0140.00517.20
8.3.180.0110.00819.04
8.3.170.0100.01016.79
8.3.160.0100.01017.11
8.3.150.0110.00716.89
8.3.140.0060.00317.28
8.3.130.0080.00018.63
8.3.120.0030.00620.59
8.3.110.0150.00420.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00016.63
8.3.70.0120.00616.88
8.3.60.0120.00318.25
8.3.50.0110.00618.26
8.3.40.0140.00419.06
8.3.30.0030.01218.84
8.3.20.0040.00421.88
8.3.10.0040.00418.78
8.3.00.0050.00319.63
8.2.290.0040.00520.31
8.2.280.0120.00718.50
8.2.270.0030.00618.78
8.2.260.0100.00716.60
8.2.250.0030.00617.29
8.2.240.0040.01118.96
8.2.230.0030.00622.58
8.2.220.0090.00637.54
8.2.210.0060.01226.77
8.2.200.0050.00516.63
8.2.190.0070.01116.58
8.2.180.0120.00618.66
8.2.170.0070.01422.96
8.2.160.0080.00819.46
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0090.00022.41
8.2.120.0050.00226.35
8.2.110.0030.00621.31
8.2.100.0090.00318.16
8.2.90.0040.00420.55
8.2.80.0040.00419.51
8.2.70.0050.00318.28
8.2.60.0000.00918.47
8.2.50.0030.00518.10
8.2.40.0060.00319.60
8.2.30.0000.00719.40
8.2.20.0040.00418.36
8.2.10.0040.00419.73
8.2.00.0030.00518.30
8.1.330.0110.00821.89
8.1.320.0040.00418.23
8.1.310.0120.00617.91
8.1.300.0030.00620.29
8.1.290.0040.00418.88
8.1.280.0140.00425.92
8.1.270.0060.00320.26
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00324.10
8.1.230.0080.00321.02
8.1.220.0000.00817.91
8.1.210.0050.00318.94
8.1.200.0000.00917.72
8.1.190.0090.00017.49
8.1.180.0000.00918.10
8.1.170.0060.00318.77
8.1.160.0000.00819.02
8.1.150.0000.00718.92
8.1.140.0050.00220.28
8.1.130.0040.00420.36
8.1.120.0040.00417.65
8.1.110.0000.00817.71
8.1.100.0000.00717.52
8.1.90.0030.00617.57
8.1.80.0040.00417.63
8.1.70.0050.00317.61
8.1.60.0030.00617.78
8.1.50.0040.00417.78
8.1.40.0070.00017.80
8.1.30.0000.00817.78
8.1.20.0060.00317.83
8.1.10.0030.00617.81
8.1.00.0080.00017.86
8.0.300.0000.00720.08
8.0.290.0080.00017.00
8.0.280.0040.00418.53
8.0.270.0020.00517.07
8.0.260.0030.00518.63
8.0.250.0000.00717.16
8.0.240.0030.00716.93
8.0.230.0030.00517.26
8.0.220.0030.00317.20
8.0.210.0030.00317.09
8.0.200.0000.00717.20
8.0.190.0040.00417.33
8.0.180.0000.00817.23
8.0.170.0060.00317.24
8.0.160.0030.00517.22
8.0.150.0020.00517.15
8.0.140.0030.00517.18
8.0.130.0000.00613.54
8.0.120.0050.00217.18
8.0.110.0000.00717.15
8.0.100.0050.00317.09
8.0.90.0030.00317.09
8.0.80.0040.01717.20
8.0.70.0040.00417.27
8.0.60.0040.00417.03
8.0.50.0040.00417.17
8.0.30.0070.00917.23
8.0.20.0000.02717.33
8.0.10.0040.00417.23
8.0.00.0140.00516.86
7.4.330.0000.00515.55
7.4.320.0000.00816.70
7.4.300.0030.00316.70
7.4.290.0030.00316.79
7.4.280.0030.00516.74
7.4.270.0030.00716.77
7.4.260.0040.00416.77
7.4.250.0040.00416.58
7.4.240.0070.00016.78
7.4.230.0000.00716.52
7.4.220.0000.00816.78
7.4.210.0110.00716.74
7.4.200.0030.00316.80
7.4.160.0120.01016.71
7.4.140.0040.01317.86
7.4.130.0070.01016.75
7.4.120.0060.01216.61
7.4.110.0100.01316.64
7.4.100.0110.00816.88
7.4.90.0150.00616.69
7.4.80.0070.01019.39
7.4.70.0030.01916.79
7.4.60.0120.00916.89
7.4.50.0040.01416.49
7.4.40.0030.01316.69
7.4.00.0100.00315.35
7.3.330.0020.00213.35
7.3.320.0060.00013.43
7.3.310.0070.00016.45
7.3.300.0000.00716.54
7.3.290.0030.00316.63
7.3.280.0070.00816.57
7.3.260.0100.01016.65
7.3.240.0080.01116.82
7.3.230.0140.00716.68
7.3.210.0000.01716.83
7.3.200.0030.01316.83
7.3.190.0100.01016.51
7.3.180.0140.00616.94
7.3.170.0060.01216.62
7.3.160.0060.01116.76
7.3.20.0100.00716.76
7.3.10.0120.00816.86
7.3.00.0090.01316.73
7.2.330.0110.00717.15
7.2.320.0030.01516.83
7.2.310.0080.00816.93
7.2.300.0040.01216.99
7.2.290.0100.00716.95
7.2.150.0090.00917.00
7.2.140.0080.01516.88
7.2.130.0070.00616.93
7.2.120.0090.01516.95
7.2.110.0080.00817.24
7.2.100.0060.00617.23
7.2.90.0040.01117.17
7.2.80.0120.01216.92
7.2.70.0000.01617.09
7.2.60.0080.00816.93
7.2.50.0090.00616.89
7.2.40.0080.00617.03
7.2.30.0080.00817.23
7.2.20.0120.00416.91
7.2.10.0090.00617.16
7.2.00.0140.00017.17
7.1.250.0040.01915.84
5.0.10.0040.00910.52

preferences:
31.05 ms | 403 KiB | 5 Q