3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1=strtotime( "today"); $d3=strtotime("$d1+2 days"); echo date("l",$d3); $d2=ceil(($d1-strtotime("Today"))/60/60/24/7); echo "There are " . $d2 ." weeks until 4th of July.";
based on 7vMdQ
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
ThursdayThere are 0 weeks until 4th of July.