3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.24
Parse error: syntax error, unexpected '}' in /in/4fIMl on line 13
Process exited with code 255.