3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $firstOfMonth = strtotime(date("Y-m-01", strtotime("2017-07-17"))); //Apply above formula. echo intval(date("W", $date)) - intval(date("W", $firstOfMonth)) + 1;
Output for 5.6.30, hhvm-3.20.2 - 3.21.3, 7.0.0 - 7.2.9
Notice: Undefined variable: date in /in/8TvMF on line 5 -24
Output for hhvm-3.22.0
Notice: Undefined variable: date in /in/8TvMF on line -1 -24
Output for hhvm-3.15.4 - 3.19.2
Notice: Undefined variable: date in /in/8TvMF on line 5 Warning: date() expects parameter 2 to be integer, null given in /in/8TvMF on line 5 -25