3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $week=date("W")- date("W", strtotime(date("Y-m-01", now())))+1; echo $week;
based on gT7v2
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function now() in /in/SvtuN:3 Stack trace: #0 {main} thrown in /in/SvtuN on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.25
Fatal error: Call to undefined function now() in /in/SvtuN on line 3
Process exited with code 255.