3v4l.org

run code in 300+ PHP versions simultaneously
<?php $minutes = 8 * 60; $enter1 = (new \DateTime())->setTime(9,37,00); $out1 = (new \DateTime())->setTime(12,56,00); $enter2 = (new \DateTime())->setTime(14,32,00); $partial = (((int)$out1->format('H')) * 60 + (int)$out1->format('i')) - (((int)$enter1->format('H')) * 60 + (int)$enter1->format('i')); $remainingMinutes = $minutes - $partial; $exitAt = clone $enter2; $exitAt->add(new \DateInterval('PT'.$remainingMinutes.'M')); echo "Esci alle: ".$exitAt->format('H:i:m');
Output for git.master, git.master_jit, rfc.property-hooks
Esci alle: 19:13:11

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