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;
based on QGg7n
Output for 4.3.0 - 7.2.0