3v4l.org

run code in 300+ PHP versions simultaneously
<?php //#------------ WORKING ------------------------- $current_date = "08/25/2017"; if(date("l", strtotime($current_date)) == "Saturday"){ $Saturday = strtotime($current_date); }else{ $Saturday = strtotime($current_date . " previous saturday"); } $Friday = strtotime(date("m/d/Y", $Saturday) . " next friday"); echo "This Reporting Week:&nbsp;" . date("m/d/Y", $Saturday) . " to " . date("m/d/Y", $Friday) . "<br/>"; echo "<br/><br/>\n" ; //#------------ NOW IT'S WORKING ---------------------- $previous_week_friday = date("m/d/Y", $Friday-3600*24*7); $previous_week_saturday = date("m/d/Y", $Saturday-3600*24*7); echo "Previous Reporting Week:&nbsp;" . $previous_week_friday . " to " . $previous_week_saturday . "<br/>"; echo "<br/><br/>";
Output for git.master, git.master_jit, rfc.property-hooks
This Reporting Week:&nbsp;08/19/2017 to 08/25/2017<br/><br/><br/> Previous Reporting Week:&nbsp;08/18/2017 to 08/12/2017<br/><br/><br/>

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