3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $day = getdate('monday'); var_dump($day);
Output for 7.0.0 - 7.1.0
Warning: getdate() expects parameter 1 to be integer, string given in /in/3JvBh on line 4 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Warning: getdate() expects parameter 1 to be integer, string given in /in/3JvBh on line 4 NULL
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) }