3v4l.org

run code in 300+ PHP versions simultaneously
<?php function daysUntil($start, $end) { $days = date('w', strtotime($end)) - date('w', strtotime($start)); $days += $days < 1 ? 7 : 0; return "{$days} days from {$start} to {$end}\n"; } echo daysUntil('Wednesday', 'Saturday'); // Thursday, Friday, Saturday echo daysUntil('Monday', 'Friday'); // Tuesday, Wednesday, Thursday, Friday echo daysUntil('Thursday', 'Thursday'); // [assumed next week] echo daysUntil('Friday', 'Monday'); // Saturday, Sunday, Monday echo daysUntil('Saturday', 'Sunday'); // Sunday echo daysUntil('Sunday', 'Saturday'); // Monday, Tuesday, Wednesday, Thursday, Friday, Saturday echo daysUntil('Sunday', 'Wednesday'); // Monday, Tuesday, Wednesday
Output for git.master, git.master_jit, rfc.property-hooks
3 days from Wednesday to Saturday 4 days from Monday to Friday 7 days from Thursday to Thursday 3 days from Friday to Monday 1 days from Saturday to Sunday 6 days from Sunday to Saturday 3 days from Sunday to Wednesday

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