3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day1hours = "10:15"; $day2hours = "10:15"; $day3hours = "04:00"; $day1 = explode(":", $day1hours); $day2 = explode(":", $day2hours); $day3 = explode(":", $day3hours); $totalmins = 0; $totalmins += $day1[0] * 60; $totalmins += $day1[1]; $totalmins += $day2[0] * 60; $totalmins += $day2[1]; $totalmins += $day3[0] * 60; $totalmins += $day3[1]; $hours = $totalmins / 60; $minutes = $totalmins % 60; $totalhours = "$hours:$minutes"; echo $totalhours;
Output for git.master, git.master_jit, rfc.property-hooks
24.5:30

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