3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $Start_Week = '201338'; $Optel_Week = 8; $Year_numbers= substr($Start_Week, 0, 4); $Week_numbers= substr($Start_Week, 4, 6); $Start_Week_berekend = date("YW", strtotime("{$Year_numbers}-W{$Week_numbers} + $Optel_Week week")); echo $Start_Week_berekend;
Output for 5.2.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
201346
Output for 4.4.1 - 4.4.9, 5.1.0 - 5.1.6
197001
Output for 5.0.0 - 5.0.5
201312
Output for 4.3.0 - 4.4.0
19701