3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Paris'); $ts = strtotime('tomorrow midnight') - 1; $date = new \DateTime('tomorrow midnight'); echo date('Y-m-d H:i:s',$ts); echo $date->format('Y-m-d H:i:s');

preferences:
36.02 ms | 402 KiB | 5 Q