3v4l.org

run code in 300+ PHP versions simultaneously
<?php $midnight = new \DateTime(); $midnight->setTimestamp(1374246685)->modify('tomorrow')->setTime(0, 0); var_dump($midnight);

preferences:
27.98 ms | 404 KiB | 5 Q