3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $first_day_of_week = date('l'); $date = intval(date()); if ($date <= 7 && $first_day_of_week == 'Tuesday') { // It's the first Monday of the month. echo "this is the first Tuesday of the week"; } ?>
Output for 5.1.0 - 7.1.0
Warning: date() expects at least 1 parameter, 0 given in /in/G2eCT on line 3 this is the first Tuesday of the week
Output for 4.3.0 - 5.0.5
Warning: Wrong parameter count for date() in /in/G2eCT on line 3 this is the first Tuesday of the week