3v4l.org

run code in 300+ PHP versions simultaneously
<?php $F = strftime("%F") ? "%F" : "%Y-%m-%d"; foreach (array("Sat 2016-07-30", "Sun 2016-07-31", "Mon 2016-08-01", "Tue 2016-08-02") as $ref) { $ref = strtotime($ref); echo strftime("Relative to %a $F, ", $ref); echo strftime("this week = %a $F, ", strtotime("this week", $ref)); echo strftime("next week = %a $F\n", strtotime("next week", $ref)); }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 3 Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 7 Relative to Sat 2016-07-30, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 8 this week = Mon 2016-07-25, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 9 next week = Mon 2016-08-01 Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 7 Relative to Sun 2016-07-31, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 8 this week = Mon 2016-07-25, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 9 next week = Mon 2016-08-01 Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 7 Relative to Mon 2016-08-01, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 8 this week = Mon 2016-08-01, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 9 next week = Mon 2016-08-08 Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 7 Relative to Tue 2016-08-02, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 8 this week = Mon 2016-08-01, Deprecated: Function strftime() is deprecated in /in/nXoDJ on line 9 next week = Mon 2016-08-08

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:
57.6 ms | 403 KiB | 8 Q