3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = array( "start" => "01:30 pm", "end"=> "02:30 pm"); if(!empty($now['start'])) { echo ltrim($now['start'],"0") .' - '. ltrim($now['end'],"0"); } ?>
based on IUlY0
Output for 4.3.0 - 7.3.0rc4
1:30 pm - 2:30 pm