3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //echo strtotime('monday this week', time()); $dayOfWeek = ((int)date('N'))-1; //$startOfWeek = var_dump($dayOfWeek);
based on 3XI8F
Output for 5.1.0 - 7.1.0
int(4)
Output for 4.3.0 - 5.0.5
int(-1)