3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $day_of_week = date('N', strtotime('15-06-2013'));
Output for 5.1.3 - 7.1.0
6
Output for 5.1.0 - 5.1.2
4
Output for 4.3.0 - 5.0.5
N