3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $wk_baseline = date('w', strtotime('01/01/2016')) . "\n"; echo ceil(max(date('z', strtotime("1/18/2016")) + 1 - $wk_baseline,0) / 7) . "\n"; echo date('z', strtotime("1/18/2016")); ?>

preferences:
59.39 ms | 402 KiB | 5 Q