3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;
based on 1RQ06
Output for 4.3.0 - 5.6.24, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2:00 PM 10 October 2014<hr>1412942400<hr>10/10/14 2:00 pm