3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $week = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); echo date('Sunday', 'w');
based on udLrW
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, string given in /in/WPf9k on line 7
Output for 5.4.0 - 5.6.28
Warning: date() expects parameter 2 to be long, string given in /in/WPf9k on line 7