3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateTimeStrBefore = "2024/09/01 10:00:00"; $dateTimeBefore = new DateTimeImmutable($dateTimeStrBefore); var_dump($dateTimeBefore);

preferences:
26.24 ms | 404 KiB | 5 Q