3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = "6 October, 2014"; $time = "1:30 AM"; $ts = strtotime($date." ".$time); $d = date("m/d/Y g:i a",$ts); echo $ts."<br />".$d; ?>
based on 1RQ06
Output for 5.1.3 - 7.1.0
<br />01/01/1970 1:00 am
Output for 5.1.0 - 5.1.2
1412551800<br />10/06/2014 1:30 am
Output for 4.3.0 - 5.0.5
-1<br />01/01/1970 12:59 am