3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date('Y-W')); var_dump(date('Y-n-j'));
Output for 4.4.1 - 4.4.9, 5.0.5 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(7) "2014-03" string(9) "2014-1-13"
Output for 4.3.0 - 4.4.0, 5.0.0 - 5.0.4
string(6) "2014-3" string(9) "2014-1-13"