3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = get_minutes('02:50'); $b = get_minutes('08:30'); /*echo intval(($b+30)/60); echo " "; echo ($b+30)%60;*/ $d = $b-$a; $intervalo = 15; $citas = intval($d/$intervalo); for($i=0;$i<$citas;$i++){ $horaCom = intval($a/60); $horaTer = intval(($a+$intervalo)/60); $minCom = $a%60; $minTer = ($a+$intervalo)%60; echo $horaCom.":".$minCom."-".$horaTer.":".$minTer."\n"; $a=$a+$intervalo; } function get_minutes($time_string) { $parts = explode(":", $time_string); $hours = intval($parts[0]); $minutes = intval($parts[1]); return $hours * 60 + $minutes; }
Output for git.master, git.master_jit, rfc.property-hooks
2:50-3:5 3:5-3:20 3:20-3:35 3:35-3:50 3:50-4:5 4:5-4:20 4:20-4:35 4:35-4:50 4:50-5:5 5:5-5:20 5:20-5:35 5:35-5:50 5:50-6:5 6:5-6:20 6:20-6:35 6:35-6:50 6:50-7:5 7:5-7:20 7:20-7:35 7:35-7:50 7:50-8:5 8:5-8:20

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