3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Base: https://github.com/shikorism/tissue/blob/4ab82ff0e28b7cf23de5739a858cda723e161df0/app/Http/Controllers/UserController.php#L104-L109 */ date_default_timezone_set('Asia/Tokyo'); $d = new DateTime("2019-01-29 00:00:00"); $d->modify("-11 months"); $d->modify("first day of this month"); for ($i = 0; $i < 12; $i++) { echo $d->format("Y/m"), PHP_EOL; $d->modify("+1 month"); }
Output for git.master, git.master_jit, rfc.property-hooks
2018/03 2018/04 2018/05 2018/06 2018/07 2018/08 2018/09 2018/10 2018/11 2018/12 2019/01 2019/02

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