3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2020-01-01 23:59:40'); $b = new DateTimeImmutable('2020-01-01 23:59:40');
Output for 7.3.0 - 7.3.29, 7.4.0 - 7.4.21, 8.0.0 - 8.0.8

preferences:
85.12 ms | 459 KiB | 5 Q