3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); $navDays = [ '-7Days' => (new DateTime())->modify('-7 days')->format('Y-m-d'), '-1Day' => (new DateTime())->modify('-1 days')->format('Y-m-d'), 'Today' => (new DateTime())->format('Y-m-d'), '+1Day' => (new DateTime())->modify('+1 days')->format('Y-m-d'), '+7Days' => (new DateTime())->modify('+7 days')->format('Y-m-d') ]; var_dump($navDays);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { ["-7Days"]=> string(10) "2015-12-15" ["-1Day"]=> string(10) "2015-12-21" ["Today"]=> string(10) "2015-12-22" ["+1Day"]=> string(10) "2015-12-23" ["+7Days"]=> string(10) "2015-12-29" }

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