3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringdate = "8/29/2011 1:00 PM"; $timestemp = strtotime($stringdate); $date = date('Y-m-d', $timestemp); $time = date('H:i:s',$timestemp); echo $date; echo $time;

preferences:
74.48 ms | 402 KiB | 5 Q