3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo setlocale(LC_ALL, 'esp'); 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 4.3.0 - 7.1.0