3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('2010-01-10 12:00:00', new DateTimeZone('America/Toronto')); $gmt = new DateTime('2010-01-10 12:00:00', new DateTimeZone('UTC')); var_dump($date->format("U") == $gmt->format("U")); $date = new DateTime('now', new DateTimeZone('America/Toronto')); $gmt = new DateTime('now', new DateTimeZone('UTC')); var_dump($date->format("U") == $gmt->format("U"));
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) 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:
47.54 ms | 401 KiB | 8 Q