3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php for($i = 1; $i < 10; $i++) { $today = strtotime("+$i days"); $quote_for = strtotime('wednesday this week',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('Y-m-d',$today) . " - " . date('Y-m-d',$quote_for) . "\n"; }
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '<' in /in/mIogG on line 3
Process exited with code 255.