3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = new DateTime(); echo $time->format('Y-m-d H:i:s T');
Output for 7.1.1 - 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.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
2018-03-14 08:58:46 CET
Output for 7.3.32 - 7.3.33, 8.0.13
2018-03-14 07:58:46 UTC
Output for 7.1.0
2018-03-14 08:58:47 CET

preferences:
136.31 ms | 401 KiB | 185 Q