3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = strtotime('00:00am'); $end = strtotime('11:00pm'); $range = array(); while ($start !== $end) { $start = strtotime('+1 hour',$start); $range[] = date('h:ia', $start); } print_r($range);
Output for 7.0.0 - 7.1.0, 7.1.6 - 7.1.7, 7.2.0
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4096 bytes) in /in/AFkOt on line 8
Process exited with code 255.
Output for 7.1.5, 7.1.10

Process exited with code 137.
Output for 5.4.0 - 5.6.28
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /in/AFkOt on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 25 bytes) in /in/AFkOt on line 8
Process exited with code 255.