3v4l.org

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

preferences:
53.9 ms | 402 KiB | 5 Q