3v4l.org

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

preferences:
34.77 ms | 402 KiB | 5 Q