3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((new \DateTime("2018-01-20 00:00:00"))->setTimezone(new \DateTimeZone('America/Bogota'))->getTimestamp()); var_dump((new \DateTime("2018-01-20 00:00:00", new \DateTimeZone('America/Bogota')))->getTimestamp());
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
int(1516402800) int(1516424400)
Output for 7.3.32 - 7.3.33, 8.0.13
int(1516406400) int(1516424400)

preferences:
175.42 ms | 402 KiB | 206 Q