3v4l.org

run code in 300+ PHP versions simultaneously
<?php \date_default_timezone_set('UTC'); echo (new \DateTimeImmutable())->format('Y-m-d H:i:s.i') . \PHP_EOL; \date_default_timezone_set('Atlantic/Cape_Verde'); echo (new \DateTimeImmutable())->format('Y-m-d H:i:s.i') . \PHP_EOL;
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
2024-07-01 23:45:41.45 2024-07-01 22:45:41.45

preferences:
48.17 ms | 985 KiB | 4 Q