3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 1; $i < 10; $i++) { $today = strtotime("+$i days"); $quote_for = strtotime('+1 Weekday',strtotime("+$i days")); $diff = floor(($quote_for - $today)/86400); // difference in days echo "On " . date('l \t\h\e jS',$today) . " the shipping quote will be for " . date('l \t\h\e jS', $quote_for) . " which is " . abs($diff) . " days " . ($diff <0?"before":"after") . " today. " . date('c',$today) . " - " . date('c',$quote_for) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
On Tuesday the 29th the shipping quote will be for Wednesday the 30th which is 1 days after today. 2013-01-29T22:34:58+01:00 - 2013-01-30T22:34:58+01:00 On Wednesday the 30th the shipping quote will be for Thursday the 31st which is 1 days after today. 2013-01-30T22:34:58+01:00 - 2013-01-31T22:34:58+01:00 On Thursday the 31st the shipping quote will be for Friday the 1st which is 1 days after today. 2013-01-31T22:34:58+01:00 - 2013-02-01T22:34:58+01:00 On Friday the 1st the shipping quote will be for Monday the 4th which is 3 days after today. 2013-02-01T22:34:58+01:00 - 2013-02-04T22:34:58+01:00 On Saturday the 2nd the shipping quote will be for Monday the 4th which is 2 days after today. 2013-02-02T22:34:58+01:00 - 2013-02-04T22:34:58+01:00 On Sunday the 3rd the shipping quote will be for Monday the 4th which is 1 days after today. 2013-02-03T22:34:58+01:00 - 2013-02-04T22:34:58+01:00 On Monday the 4th the shipping quote will be for Tuesday the 5th which is 1 days after today. 2013-02-04T22:34:58+01:00 - 2013-02-05T22:34:58+01:00 On Tuesday the 5th the shipping quote will be for Wednesday the 6th which is 1 days after today. 2013-02-05T22:34:58+01:00 - 2013-02-06T22:34:58+01:00 On Wednesday the 6th the shipping quote will be for Thursday the 7th which is 1 days after today. 2013-02-06T22:34:58+01:00 - 2013-02-07T22:34:58+01:00

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:
44.05 ms | 404 KiB | 8 Q