3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new DateTime('@1.1'); $dt2 = new DateTime('@-1.1'); var_dump($dt1, $dt1->getTimestamp()); var_dump($dt2, $dt2->getTimestamp());
Output for git.master_jit, git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "1970-01-01 00:00:01.100000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } int(1) object(DateTime)#2 (3) { ["date"]=> string(26) "1969-12-31 23:59:58.900000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } int(-2)

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:
27.98 ms | 406 KiB | 5 Q