3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime('now', new DateTimeZone('UTC')); $day_of_week = $today->format('w'); $today->modify('- ' . (($day_of_week - 1 + 7) % 7) . 'days'); $sunday = clone $today; $sunday->modify('+ 6 days'); echo $today->format('Y-m-d') . "\n"; echo $sunday->format('Y-m-d');
Output for git.master, git.master_jit, rfc.property-hooks
2024-12-30 2025-01-05

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.08 ms | 405 KiB | 5 Q