3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "1:00 pm"; $timestamp = (strtotime($string) > time()) ? strtotime($string) : strtotime("tomorrow " . $string); echo date("r",$timestamp);

preferences:
33.85 ms | 402 KiB | 5 Q