3v4l.org

run code in 300+ PHP versions simultaneously
<?php $monday = new DateTime('this monday'); $sunday = new DateTime('this sunday'); $monday->setTime(0, 0, 0); $sunday->setTime(23, 59, 59); $nextMonday = clone $monday; $nextMonday->modify('+1 week'); $nextSunday = clone $sunday; $nextSunday->modify('+1 week'); var_dump( array('monday' => $monday->format('Y-m-d H:i:s'), 'sunday' => $sunday->format('Y-m-d H:i:s'), 'monday' => $nextMonday->format('Y-m-d H:i:s'), 'sunday' => $nextSunday->format('Y-m-d H:i:s')) );
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["monday"]=> string(19) "2015-09-28 00:00:00" ["sunday"]=> string(19) "2015-09-27 23:59:59" }

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:
39.46 ms | 401 KiB | 8 Q