3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $day = getdate(1); var_dump($day);
Output for 4.3.0 - 7.2.0
array(11) { ["seconds"]=> int(1) ["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(1) }