3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = "j-M-y H:i:s"; $f4_raw = "Fri Aug 30 2013 00:00:00 GMT+0530"; $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:
34.93 ms | 402 KiB | 5 Q