3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $day = getdate('monday'); var_dump($day);
Output for 7.3.0alpha1 - 7.3.0rc6
Warning: getdate() expects parameter 1 to be int, string given in /in/3JvBh on line 4 bool(false)
Output for 7.0.0 - 7.2.6
Warning: getdate() expects parameter 1 to be integer, string given in /in/3JvBh on line 4 bool(false)
Output for 5.1.0 - 5.6.28
Warning: getdate() expects parameter 1 to be long, string given in /in/3JvBh on line 4 bool(false)
Output for 4.3.0 - 5.0.5
array(11) { ["seconds"]=> int(0) ["minutes"]=> int(0) ["hours"]=> int(1) ["mday"]=> int(1) ["wday"]=> int(4) ["mon"]=> int(1) ["year"]=> int(1970) ["yday"]=> int(0) ["weekday"]=> string(8) "Thursday" ["month"]=> string(7) "January" [0]=> int(0) }