3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $start = new DateTime('2013-02-01'); $end = new DateTime('2013-02-17'); $interval = new DateInterval('P1D'); $period = new DatePeriod($start, $interval, $end); if ($period === null) { echo "null"; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17, 5.5.0 - 5.5.1
Parse error: syntax error, unexpected '<' in /in/1cdkF on line 3
Process exited with code 255.

preferences:
179.28 ms | 1399 KiB | 55 Q