3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nightStart = '23:00:00'; $nightEnd = '05:00:00'; $tripStart = new DateTime('2013-01-11 22:00:00'); $tripEnd = new DateTime('2013-01-12 00:00:00'); $today = new DateTime('now')->format('Y-m-d'); $nightTodayStart = new DateTime(); ?>
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in leVLA on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in leVLA on line 9
Process exited with code 255.

preferences:
172.13 ms | 1395 KiB | 39 Q