3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(date("Y-m-d", strtotime("+1"))); $dateNow = new DateTime(date("Y-m-d", strtotime("now"))); echo $date;

preferences:
38.69 ms | 405 KiB | 6 Q