3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today=date("D"); $time1=strtotime("now"); $time2=strtotime("11:59pm"); //echo date('m-d-Y',strtotime("next Thursday")); //echo $today; if ($today=="Tue" || $today=="Wed" ) { $day1="Friday ".date('m-d-Y',strtotime("next Friday")); $day2="Tuesday ".date('m-d-Y',strtotime("next Tuesday")); if ($today=="Tue") $day3="Wednesday ".date('m-d-Y',strtotime("+1 week 1 days")); else $day3="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } else if ($today=="Sun" || $today=="Mon" ) { $day1="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); $day2="Thursday ".date('m-d-Y',strtotime("next Thursday")); $day3="Friday ".date('m-d-Y',strtotime("next Friday")); if ($today=="Sun") $day4="Tuesday ".date('m-d-Y',strtotime("+1 week 2 days")); else $day4="Tuesday ".date('m-d-Y',strtotime("+1 week 1 days")); } else if ($today=="Thu" || $today=="Fri" || $today=="Sat" ) { $day1="Tuesday ".date('m-d-Y',strtotime("next Tuesday")); $day2="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); if ($today=="Thu") { $day3="Thursday ".date('m-d-Y',strtotime("+1 week ")); $day4="Friday ".date('m-d-Y',strtotime("+1 week 1 days")); } else { $day3="Thursday ".date('m-d-Y',strtotime("next Thursday")); $day4="Friday ".date('m-d-Y',strtotime("next Friday")); } } echo "day 1-->".$day1."<br />"; echo "day 2-->".$day2."<br />"; echo "day 3-->".$day3."<br />"; echo "day 4-->".$day4."<br />"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
day 1-->Tuesday 01-14-2014<br />day 2-->Wednesday 01-15-2014<br />day 3-->Thursday 01-16-2014<br />day 4-->Friday 01-17-2014<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:
47.05 ms | 401 KiB | 8 Q