3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start=strtotime('00:00'); $end=strtotime('23:30'); for ($halfhour='00:00';$halfhour<='23:30';$halfhour=$halfhour+30*60) { printf('<option value="%s">%s</option>',date('H:i',$halfhour),date('g:i a',$halfhour)); } ?>
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/sjIdL on line 6 Notice: A non well formed numeric value encountered in /in/sjIdL on line 6 <option value="01:00">1:00 am</option> Notice: A non well formed numeric value encountered in /in/sjIdL on line 5
Output for 5.1.0 - 7.0.14
Notice: A non well formed numeric value encountered in /in/sjIdL on line 6 Notice: A non well formed numeric value encountered in /in/sjIdL on line 6 <option value="01:00">1:00 am</option>
Output for 4.3.0 - 5.0.5
<option value="01:00">1:00 am</option>