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>
Output for git.master, git.master_jit, rfc.property-hooks
2019-02-14 <br> 2019-02-10 <br> 2019-02-17 <br>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
171.41 ms | 405 KiB | 5 Q