3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0