3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $day = getdate(1); var_dump($day);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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) }