3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date('Y-m-d'); $start = strtotime('2013-12-25'); $end = strtotime('2013-12-26'); $timestamp = strtotime($date); if($timestamp >= $start && $timestamp <= $end) { echo "The date $date is within our date range\n"; } else { echo "The date $date is NOT within our date range\n"; } }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '}' in /in/4fIMl on line 13
Process exited with code 255.

preferences:
191.98 ms | 1399 KiB | 61 Q