3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '27-05-2016 15:30'; echo date('h:i A d-M-Y', strtotime($date)); //3:30 PM 27-May-2016

preferences:
22.58 ms | 405 KiB | 5 Q