3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('2019-01-18'); $date = date('Y-m-d', $timestamp); $mthDays = date('t', $timestamp); $dexpl = explode('-', $date); $y = 0; while ($y <= $mthDays) { echo date('Y-m-d',strtotime($dexpl[0]."-".$dexpl[1]."-".$y)) . \PHP_EOL; $y++; }
Output for git.master, git.master_jit, rfc.property-hooks
2018-12-31 2019-01-01 2019-01-02 2019-01-03 2019-01-04 2019-01-05 2019-01-06 2019-01-07 2019-01-08 2019-01-09 2019-01-10 2019-01-11 2019-01-12 2019-01-13 2019-01-14 2019-01-15 2019-01-16 2019-01-17 2019-01-18 2019-01-19 2019-01-20 2019-01-21 2019-01-22 2019-01-23 2019-01-24 2019-01-25 2019-01-26 2019-01-27 2019-01-28 2019-01-29 2019-01-30 2019-01-31

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:
29.76 ms | 406 KiB | 5 Q