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.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
2024-07-01 23:45:41.45 2024-07-01 22:45:41.45

preferences:
63.77 ms | 406 KiB | 5 Q