3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php d$currentDate = date('m/d/Y'); $start = strtotime('01-12-14'); $end = strtotime('02-12-14'); $timestamp = strtotime($currentDate); if($timestamp >= $start && $timestamp <= $end) { echo "The date $currentDate is within our date range\n"; } else { echo "The date $currentDate is NOT within our date range\n"; }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$currentDate' (T_VARIABLE) in /in/hQhpf on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/hQhpf on line 2
Process exited with code 255.