3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = "2015-04-28 17:22"; var_dump( date("g:hha",strtotime($date))); ?>
based on 0u0eZ
Output for 4.3.0 - 7.2.0
string(8) "5:0505pm"