3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTimeImmutable(); echo $dt->format(DATE_ISO8601).PHP_EOL; $currenthour = $dt->format("H"); echo $currenthour.PHP_EOL; $dt2 = $dt->setTime($currenthour, 0, 0); echo $dt2->format(DATE_ISO8601).PHP_EOL;
Output for git.master_jit, git.master
2026-03-10T17:16:24+0100 17 2026-03-10T17:00:00+0100

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:
33.44 ms | 477 KiB | 5 Q