3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = "2:00 PM"; $day = "10 October, 2014"; $string = $time." ".$day; $string = str_replace(",","",$string); $time = strtotime($string); $date = date("m/d/y g:i a", $time); echo $string."<hr>"; echo $time."<hr>"; echo $date;

preferences:
54.18 ms | 402 KiB | 5 Q