3v4l.org

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

preferences:
31.77 ms | 402 KiB | 5 Q