3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i < 10; $i++) { $today = strtotime("+$i days"); $quote_for = strtotime('+1 Weekday',strtotime("+$i days")); $diff = ($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?"after":"before") . " today. \n"; }
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
On Tuesday the 29th the shipping quote will be for Wednesday the 30th which is 0.061215277777778days after today. On Wednesday the 30th the shipping quote will be for Thursday the 31st which is 0.061215277777778days after today. On Thursday the 31st the shipping quote will be for Friday the 1st which is 0.061215277777778days after today. On Friday the 1st the shipping quote will be for Monday the 4th which is 2.0612152777778days after today. On Saturday the 2nd the shipping quote will be for Monday the 4th which is 1.0612152777778days after today. On Sunday the 3rd the shipping quote will be for Monday the 4th which is 0.061215277777778days after today. On Monday the 4th the shipping quote will be for Tuesday the 5th which is 0.061215277777778days after today. On Tuesday the 5th the shipping quote will be for Wednesday the 6th which is 0.061215277777778days after today. On Wednesday the 6th the shipping quote will be for Thursday the 7th which is 0.061215277777778days after today.
Output for 5.1.0 - 5.1.6
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15734.897118056days before today. On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15735.897118056days before today. On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15736.897118056days before today. On Friday the 1st the shipping quote will be for Thursday the 1st which is 15737.897118056days before today. On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15738.897118056days before today. On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15739.897118056days before today. On Monday the 4th the shipping quote will be for Thursday the 1st which is 15740.897118056days before today. On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15741.897118056days before today. On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15742.897118056days before today.
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15734.89712963days before today. On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15735.89712963days before today. On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15736.89712963days before today. On Friday the 1st the shipping quote will be for Thursday the 1st which is 15737.89712963days before today. On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15738.89712963days before today. On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15739.89712963days before today. On Monday the 4th the shipping quote will be for Thursday the 1st which is 15740.89712963days before today. On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15741.89712963days before today. On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15742.89712963days before today.
Output for 5.0.0 - 5.0.2
On Tuesday the 29th the shipping quote will be for Thursday the 1st which is 15733.958344907days before today. On Wednesday the 30th the shipping quote will be for Thursday the 1st which is 15734.958344907days before today. On Thursday the 31st the shipping quote will be for Thursday the 1st which is 15735.958344907days before today. On Friday the 1st the shipping quote will be for Thursday the 1st which is 15736.958344907days before today. On Saturday the 2nd the shipping quote will be for Thursday the 1st which is 15737.958344907days before today. On Sunday the 3rd the shipping quote will be for Thursday the 1st which is 15738.958344907days before today. On Monday the 4th the shipping quote will be for Thursday the 1st which is 15739.958344907days before today. On Tuesday the 5th the shipping quote will be for Thursday the 1st which is 15740.958344907days before today. On Wednesday the 6th the shipping quote will be for Thursday the 1st which is 15741.958344907days before today.