3v4l.org

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