3v4l.org

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

preferences:
38.41 ms | 402 KiB | 5 Q