3v4l.org

run code in 200+ php & hhvm versions
<?php $v = new DateTime(); $v->setDate('2019','12','21'); echo $v->format('W');
based on DGhpd
Output for 7.1.25 - 7.3.6
51