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>

preferences:
18.6 ms | 404 KiB | 5 Q