3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d H:i:s T'); $d = new \Datetime("2021-07-15 10:44:05.574478"); echo "\n"; echo $d->format('Y-m-d H:i:s T');
Output for 7.3.0 - 7.3.29, 7.4.0 - 7.4.21, 8.0.0 - 8.0.8
2021-07-22 10:51:49 CEST 2021-07-15 10:44:05 CEST

preferences:
133.15 ms | 459 KiB | 5 Q