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 8.0.10 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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
Output for 8.0.13
On Tuesday the 29th the shipping quote will be for Wednesday the 30th which is 1 days after today. 2013-01-29T21:34:58+00:00 - 2013-01-30T21:34:58+00:00 On Wednesday the 30th the shipping quote will be for Thursday the 31st which is 1 days after today. 2013-01-30T21:34:58+00:00 - 2013-01-31T21:34:58+00:00 On Thursday the 31st the shipping quote will be for Friday the 1st which is 1 days after today. 2013-01-31T21:34:58+00:00 - 2013-02-01T21:34:58+00:00 On Friday the 1st the shipping quote will be for Monday the 4th which is 3 days after today. 2013-02-01T21:34:58+00:00 - 2013-02-04T21:34:58+00:00 On Saturday the 2nd the shipping quote will be for Monday the 4th which is 2 days after today. 2013-02-02T21:34:58+00:00 - 2013-02-04T21:34:58+00:00 On Sunday the 3rd the shipping quote will be for Monday the 4th which is 1 days after today. 2013-02-03T21:34:58+00:00 - 2013-02-04T21:34:58+00:00 On Monday the 4th the shipping quote will be for Tuesday the 5th which is 1 days after today. 2013-02-04T21:34:58+00:00 - 2013-02-05T21:34:58+00:00 On Tuesday the 5th the shipping quote will be for Wednesday the 6th which is 1 days after today. 2013-02-05T21:34:58+00:00 - 2013-02-06T21:34:58+00:00 On Wednesday the 6th the shipping quote will be for Thursday the 7th which is 1 days after today. 2013-02-06T21:34:58+00:00 - 2013-02-07T21:34:58+00:00
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.9
On Tuesday the 29th the shipping quote will be for Wednesday the 30th which is 0 days after today. 2013-01-29T22:34:58+01:00 - 2013-01-30T00:00:00+01:00 On Wednesday the 30th the shipping quote will be for Thursday the 31st which is 0 days after today. 2013-01-30T22:34:58+01:00 - 2013-01-31T00:00:00+01:00 On Thursday the 31st the shipping quote will be for Friday the 1st which is 0 days after today. 2013-01-31T22:34:58+01:00 - 2013-02-01T00:00:00+01:00 On Friday the 1st the shipping quote will be for Monday the 4th which is 2 days after today. 2013-02-01T22:34:58+01:00 - 2013-02-04T00:00:00+01:00 On Saturday the 2nd the shipping quote will be for Monday the 4th which is 1 days after today. 2013-02-02T22:34:58+01:00 - 2013-02-04T00:00:00+01:00 On Sunday the 3rd the shipping quote will be for Monday the 4th which is 0 days after today. 2013-02-03T22:34:58+01:00 - 2013-02-04T00:00:00+01:00 On Monday the 4th the shipping quote will be for Tuesday the 5th which is 0 days after today. 2013-02-04T22:34:58+01:00 - 2013-02-05T00:00:00+01:00 On Tuesday the 5th the shipping quote will be for Wednesday the 6th which is 0 days after today. 2013-02-05T22:34:58+01:00 - 2013-02-06T00:00:00+01:00 On Wednesday the 6th the shipping quote will be for Thursday the 7th which is 0 days after today. 2013-02-06T22:34:58+01:00 - 2013-02-07T00:00:00+01:00
Output for 7.3.32 - 7.3.33
On Tuesday the 29th the shipping quote will be for Wednesday the 30th which is 0 days after today. 2013-01-29T21:34:58+00:00 - 2013-01-30T00:00:00+00:00 On Wednesday the 30th the shipping quote will be for Thursday the 31st which is 0 days after today. 2013-01-30T21:34:58+00:00 - 2013-01-31T00:00:00+00:00 On Thursday the 31st the shipping quote will be for Friday the 1st which is 0 days after today. 2013-01-31T21:34:58+00:00 - 2013-02-01T00:00:00+00:00 On Friday the 1st the shipping quote will be for Monday the 4th which is 2 days after today. 2013-02-01T21:34:58+00:00 - 2013-02-04T00:00:00+00:00 On Saturday the 2nd the shipping quote will be for Monday the 4th which is 1 days after today. 2013-02-02T21:34:58+00:00 - 2013-02-04T00:00:00+00:00 On Sunday the 3rd the shipping quote will be for Monday the 4th which is 0 days after today. 2013-02-03T21:34:58+00:00 - 2013-02-04T00:00:00+00:00 On Monday the 4th the shipping quote will be for Tuesday the 5th which is 0 days after today. 2013-02-04T21:34:58+00:00 - 2013-02-05T00:00:00+00:00 On Tuesday the 5th the shipping quote will be for Wednesday the 6th which is 0 days after today. 2013-02-05T21:34:58+00:00 - 2013-02-06T00:00:00+00:00 On Wednesday the 6th the shipping quote will be for Thursday the 7th which is 0 days after today. 2013-02-06T21:34:58+00:00 - 2013-02-07T00:00:00+00:00
Output for 5.1.0 - 5.1.6
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15735 days before today. 2013-01-29T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15736 days before today. 2013-01-30T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15737 days before today. 2013-01-31T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Friday the 1st the shipping quote will be for Thursday the 1st which is 15738 days before today. 2013-02-01T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15739 days before today. 2013-02-02T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15740 days before today. 2013-02-03T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Monday the 4th the shipping quote will be for Thursday the 1st which is 15741 days before today. 2013-02-04T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15742 days before today. 2013-02-05T22:34:58+01:00 - 1970-01-01T01:00:00+01:00 On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15743 days before today. 2013-02-06T22:34:58+01:00 - 1970-01-01T01:00:00+01:00
Output for 5.0.3 - 5.0.5
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15735 days before today. 2013-01-29T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15736 days before today. 2013-01-30T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15737 days before today. 2013-01-31T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Friday the 1st the shipping quote will be for Thursday the 1st which is 15738 days before today. 2013-02-01T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15739 days before today. 2013-02-02T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15740 days before today. 2013-02-03T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Monday the 4th the shipping quote will be for Thursday the 1st which is 15741 days before today. 2013-02-04T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15742 days before today. 2013-02-05T22:34:58+01:00 - 1970-01-01T00:59:59+01:00 On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15743 days before today. 2013-02-06T22:34:58+01:00 - 1970-01-01T00:59:59+01:00
Output for 5.0.0 - 5.0.2
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15734 days before today. 2013-01-29T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15735 days before today. 2013-01-30T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15736 days before today. 2013-01-31T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Friday the 1st the shipping quote will be for Thursday the 1st which is 15737 days before today. 2013-02-01T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15738 days before today. 2013-02-02T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15739 days before today. 2013-02-03T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Monday the 4th the shipping quote will be for Thursday the 1st which is 15740 days before today. 2013-02-04T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15741 days before today. 2013-02-05T00:00:00+01:00 - 1970-01-01T00:59:59+01:00 On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15742 days before today. 2013-02-06T00:00:00+01:00 - 1970-01-01T00:59:59+01:00
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15735 days before today. c - c On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15736 days before today. c - c On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15737 days before today. c - c On Friday the 1st the shipping quote will be for Thursday the 1st which is 15738 days before today. c - c On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15739 days before today. c - c On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15740 days before today. c - c On Monday the 4th the shipping quote will be for Thursday the 1st which is 15741 days before today. c - c On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15742 days before today. c - c On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15743 days before today. c - c

preferences:
216.73 ms | 404 KiB | 352 Q