3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:00:00', new DateTimeZone('Europe/Berlin')); $end = DateTime::createFromFormat('Y-m-d H:i:s', '2012-07-13 01:30:00', new DateTimeZone('Europe/Berlin')); while($start =< $end) { echo $start->format('H:i:s'), "\n"; $start->modify('+10 minutes'); }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '<' in /in/CPc8L on line 5
Process exited with code 255.

preferences:
184.66 ms | 1387 KiB | 67 Q