3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $date1 = new DateTime('2015-01-01T12:00:00'); $date2 = new DateTime('2015-01-01T12:01:00'); var_dump($date1 < $date2); $date1->setTimezone(new DateTimeZone('UTC')); $date2->setTimezone(new DateTimeZone('EST')); var_dump($date1 < $date2); $date1->getTimestamp(); $date2->getTimestamp(); var_dump($date1 < $date2);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(true)

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:
32.35 ms | 405 KiB | 5 Q