3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((DateTime::createFromFormat(DateTime::ATOM ,'2023-07-18T08:22:35+02:00'))->format("Y. m. d."));
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
string(13) "2023. 07. 18."

preferences:
45.26 ms | 406 KiB | 5 Q