3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = "18 hours 13 minutes"; $time2 = "47 minutes"; $time3 = "1 hour"; $time4 = "1 hour"; $time5 = "1 hour"; $time6 = ""; $time7 = ""; $start = new DateTime(); $end = clone($start); if (!empty($time)) $end->modify("+$time"); if (!empty($time2)) $end->modify("+$time2"); if (!empty($time3)) $end->modify("+$time3"); if (!empty($time4)) $end->modify("+$time4"); if (!empty($time5)) $end->modify("+$time5"); if (!empty($time6)) $end->modify("+$time6"); if (!empty($time7)) $end->modify("+$time7"); $total = $end->diff($start); echo $total->format('%h hours %i minutes');
Output for git.master, git.master_jit, rfc.property-hooks
22 hours 0 minutes

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:
31.49 ms | 401 KiB | 8 Q