3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new \DateTime('today midnight'); $endThisYear = new \DateTime('end of this year'); var_dump($now, $endThisYear);

preferences:
51.5 ms | 402 KiB | 5 Q