3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; $monday = date('Y-m-d', strtotime('monday this week +'.$x.' week')); $tuesday = date('Y-m-d', strtotime('tuesday this week +'.$x.' week')); $wednesday = date('Y-m-d', strtotime('wednesday this week +'.$x.' week')); $thursday = date('Y-m-d', strtotime('thursday this week +'.$x.' week')); $friday = date('Y-m-d', strtotime('friday this week +'.$x.' week')); $saturday = date('Y-m-d', strtotime('saturday this week +'.$x.' week')); $sunday = date('Y-m-d', strtotime('sunday this week +'.$x.' week')); var_dump($monday, $tuesday, $wednesday, $thursday, $friday, $saturday, $sunday);
Output for git.master, git.master_jit, rfc.property-hooks
string(10) "2018-10-29" string(10) "2018-10-30" string(10) "2018-10-31" string(10) "2018-11-01" string(10) "2018-11-02" string(10) "2018-11-03" string(10) "2018-11-04"

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:
28.32 ms | 405 KiB | 5 Q