3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo setlocale(LC_ALL, 'es_es'); die; echo $last_access=strtotime('-2 days'); if ($last_access >= strtotime("today")) echo "Today"; else if ($last_access >= strtotime("yesterday")) echo "Yesterday"; else echo 'not yesterday'; $today = date(”m.d.Y”); $yesterday = date(”m.d.Y”, strtotime(”-1 day”)); $mtdate = “<$MTEntryDate format=”%m.%d.%Y”$>”; if ($mtdate==$today) { echo “Today”; } elseif ($mtdate==$yesterday) { echo “Yesterday”; } else { echo(”<$MTEntryDate format=”%A”$>”); } ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected 'day”' (T_STRING) in /in/vMpXX on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/vMpXX on line 25
Process exited with code 255.