3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "2015-04-28 17:51:31.000"; var_dump( date("g:ia",strtotime($date))); ?>
based on c3BFW
Output for 5.0.0 - 7.2.0
string(6) "5:51pm"
Output for 4.3.0 - 4.4.9
string(7) "12:59am"