3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateTime = new DateTimeImmutable('2018-06-26', new DateTimeZone('GMT+10:00')); var_dump($dateTime->format('c')); var_dump($dateTime->getTimestamp()); $dateTime = $dateTime->setTime(14, 0)->modify('- 10 days'); var_dump($dateTime->format('c')); var_dump($dateTime->getTimestamp());
Output for git.master, git.master_jit, rfc.property-hooks
string(25) "2018-06-26T00:00:00+10:00" int(1529935200) string(25) "2018-06-16T14:00:00+10:00" int(1529121600)

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