3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "1:00 pm"; $timestamp = (strtotime($string) > time()) ? strtotime($string) : strtotime($string); echo date("r",$timestamp);
Output for 4.3.0 - 7.1.0
Tue, 26 Nov 2013 13:00:00 +0100