3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('N', strtotime("2014-08-01"));
based on OJfdl
Output for 5.1.0 - 7.1.0
5
Output for 4.3.0 - 5.0.5
N