3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable('now', new DateTimeZone('Pacific/Midway')); $date2 = new DateTimeImmutable('now', new DateTimeZone('US/Samoa')); echo $date->format('Y-m-d H:i:s') . PHP_EOL; echo $date2->format('Y-m-d H:i:s') . PHP_EOL; var_dump($date == $date2);

preferences:
44.9 ms | 458 KiB | 5 Q