3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $amsterdam = new DateTime('now', new DateTimeZone('Europe/Amsterdam')); $amsterdamTimestamp = $amsterdam->getTimestamp(); $newYork = new DateTime('now', new DateTimeZone('America/New_York')); $newYorkTimestamp = $newYork->getTimestamp(); var_dump($amsterdamTimestamp, $newYorkTimestamp, $amsterdamTimestamp - $newYorkTimestamp);
Output for 5.6.28, 7.0.20 - 7.2.0
int(1447786676) int(1447786676) int(0)
Output for 7.0.6
int(1462294651) int(1462294651) int(0)
Output for 7.0.5
int(1459660891) int(1459660891) int(0)
Output for 7.0.4
int(1457633463) int(1457633463) int(0)
Output for 7.0.3
int(1458329048) int(1458329048) int(0)
Output for 7.0.2
int(1458696706) int(1458696706) int(0)
Output for 7.0.1
int(1458795892) int(1458795892) int(0)
Output for 7.0.0
int(1459058423) int(1459058423) int(0)
Output for 5.6.21
int(1462190787) int(1462190787) int(0)
Output for 5.6.20
int(1460262064) int(1460262064) int(0)
Output for 5.6.19
int(1457403741) int(1457403741) int(0)
Output for 5.6.18
int(1458040147) int(1458040147) int(0)
Output for 5.6.17
int(1458427522) int(1458427522) int(0)
Output for 5.6.16
int(1459147660) int(1459147660) int(0)
Output for 5.6.15
int(1459237096) int(1459237096) int(0)
Output for 5.6.14
int(1459589275) int(1459589275) int(0)
Output for 5.6.13
int(1460728571) int(1460728571) int(0)
Output for 5.6.12
int(1461126280) int(1461126280) int(0)
Output for 5.6.11
int(1461494880) int(1461494880) int(0)
Output for 5.6.10
int(1461588587) int(1461588587) int(0)
Output for 5.6.9
int(1461779988) int(1461779988) int(0)
Output for 5.6.8
int(1461984760) int(1461984760) int(0)
Output for 5.5.35
int(1463947853) int(1463947853) int(0)
Output for 5.5.34
int(1460356352) int(1460356352) int(0)
Output for 5.5.33
int(1457500160) int(1457500160) int(0)
Output for 5.5.32
int(1458226863) int(1458226863) int(0)
Output for 5.5.31
int(1458524927) int(1458524927) int(0)
Output for 5.5.30
int(1459503118) int(1459503118) int(0)
Output for 5.5.29
int(1460866656) int(1460866656) int(0)
Output for 5.5.28
int(1461224333) int(1461224333) int(0)
Output for 5.5.27
int(1461317066) int(1461317066) int(0)
Output for 5.5.26
int(1461684786) int(1461684786) int(0)
Output for 5.5.25
int(1461882677) int(1461882677) int(0)
Output for 5.5.24
int(1464065871) int(1464065871) int(0)
Output for 5.4.45
int(1447786679) int(1447786679) int(0)
Output for 5.4.44
int(1447786680) int(1447786680) int(0)
Output for 5.4.43
int(1447786681) int(1447786681) int(0)
Output for 5.4.41 - 5.4.42
int(1447786682) int(1447786682) int(0)
Output for 5.4.40
int(1447786683) int(1447786683) int(0)
Output for 5.4.38 - 5.4.39
int(1447786684) int(1447786684) int(0)
Output for 5.4.35 - 5.4.37
int(1447786685) int(1447786685) int(0)
Output for 5.3.29, 5.4.32 - 5.4.34
int(1447786686) int(1447786686) int(0)
Output for 5.4.28 - 5.4.31
int(1447786687) int(1447786687) int(0)
Output for 5.4.25 - 5.4.27
int(1447786688) int(1447786688) int(0)
Output for 5.3.28, 5.4.22 - 5.4.24
int(1447786689) int(1447786689) int(0)
Output for 5.4.18 - 5.4.21
int(1447786690) int(1447786690) int(0)
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
int(1447786691) int(1447786691) int(0)
Output for 5.3.21 - 5.3.24, 5.4.11 - 5.4.14
int(1447786692) int(1447786692) int(0)
Output for 5.3.19 - 5.3.20, 5.4.9 - 5.4.10
int(1447786693) int(1447786693) int(0)