3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('w'); //$todayTime = strtotime('now'); $thisMondayTime = strtotime('- ' . (intval(date('N')) - 1) . ' days'); //$fourWeeksLaterTime = strtotime('+ 28 days'); $SundayOfFourWeeksLaterTime = strtotime('+ ' . (28 + 7 - intval(date('N', strtotime('+ 28 days')))) . ' days'); echo date('m.d.y', $thisMondayTime) . "\n"; echo date('m.d.y', $SundayOfFourWeeksLaterTime) . "\n"; echo 'XXXXXX\n'; echo date('m.d.y', strtotime('last Monday', strtotime('+ 28 days'))) . "\n"; echo date('m.d.y',strtotime('next Monday', strtotime('+ 28 days'))) . "\n"; echo date('m.d.y',strtotime('last Monday')) . "\n"; echo date('m.d.y',strtotime('last Monday', strtotime('last Monday'))) . "\n"; echo "\n"; echo date('m.d.y',strtotime('- ' . (intval(date('N')) - 1) . ' days')); ?>
Output for git.master, git.master_jit, rfc.property-hooks
412.03.12 01.06.13 XXXXXX\n12.31.12 01.07.13 12.03.12 11.26.12 12.03.12

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.5 ms | 401 KiB | 8 Q