3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(\DateTime::createFromFormat('U', 1520333820)); var_dump(date('wHi', 1520333820)); var_dump(date('w', 1520333820));
Output for 7.2.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2018-03-06 10:57:00.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } string(5) "21157" string(1) "2"