3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime(1234567890); var_dump($dt->getTimestamp()); var_dump($dt->format("Y-m-d H:i:s")); $dt = DateTime::createFromFormat("U", 1234567890); var_dump($dt->getTimestamp()); var_dump($dt->format("Y-m-d H:i:s"));
Output for git.master, git.master_jit, rfc.property-hooks
int(186840383696) string(19) "7890-09-26 12:34:56" int(1234567890) string(19) "2009-02-13 23:31:30"

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