3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable(); var_dump($date, $date->add(new DateInterval('P0D')));

preferences:
23.89 ms | 404 KiB | 5 Q