3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "j-M-y H:i:s"; $f4_raw = "Wed Jan 14 00:09:09 BDT 2009"; $f4_formatted = date($format, strtotime($f4_raw)); echo "Format 4: $f4_formatted"; //$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format... //echo $date->format('Y-m-d');

preferences:
36.01 ms | 402 KiB | 5 Q