3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=67634 $date = new DateTimeImmutable('first day of next month midnight - 1 second'); var_dump($date->format('c')); var_dump($date->format('U')); var_dump($date->getTimestamp()); var_dump($date->format('c')); var_dump($date->format('U'));
Output for git.master, git.master_jit, rfc.property-hooks
string(25) "2021-04-30T23:59:59+02:00" string(10) "1619819999" int(1619819999) string(25) "2021-04-30T23:59:59+02:00" string(10) "1619819999"

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