3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dayoftheweek = date('w'); //PHP : from 0 (sunday) to 6 (pour saturday) if ($dayoftheweek == 0) $dayoftheweek = 7; $monday= mktime(0, 0, 0, date("m"), (date("d") - $dayoftheweek + 1), date("Y"));
based on D42D5
Output for 4.3.0 - 7.1.7