3v4l.org

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

preferences:
38.28 ms | 402 KiB | 5 Q