3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = strtotime('00:00'); $end = strtotime('23:00'); $range = array(); while ($start !== $end) { $start = strtotime('+1 hour',$start); $range[] = date('H:i', $start); } print_r($range);
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 01:00 [1] => 02:00 [2] => 03:00 [3] => 04:00 [4] => 05:00 [5] => 06:00 [6] => 07:00 [7] => 08:00 [8] => 09:00 [9] => 10:00 [10] => 11:00 [11] => 12:00 [12] => 13:00 [13] => 14:00 [14] => 15:00 [15] => 16:00 [16] => 17:00 [17] => 18:00 [18] => 19:00 [19] => 20:00 [20] => 21:00 [21] => 22:00 [22] => 23:00 )
Output for 5.0.0 - 5.0.2

Process exited with code 137.