3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $wk_baseline = date('w', strtotime('01/01/2016')) - 1 . "\n"; echo ceil(max(date('z', strtotime("1/18/2016")) + 1 + $wk_baseline,0) / 7) . "\n"; echo date('z', strtotime("1/18/2016")); ?>
based on rbIGN
Output for 7.1.0 - 7.3.0beta1
4 Notice: A non well formed numeric value encountered in /in/YtqMW on line 3 4 17
Output for 5.5.0 - 7.0.20
4 4 17