3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $yr="2011"; $week="01"; $day="mon"; echo date("Y-m-d", strtotime($yr."W".$week."D ".$day));; echo date("D",$day); ?>
Output for hhvm-3.10.0, hhvm-3.13.2, 7.0.0 - 7.1.0
2011-01-04 Warning: date() expects parameter 2 to be integer, string given in /in/P1g2L on line 6
Output for hhvm-3.12.0
2011-01-04 Warning: date() expects parameter 2 to be integer, string given in /in/P1g2L on line -1
Output for 5.2.0 - 5.6.28
2011-01-04 Warning: date() expects parameter 2 to be long, string given in /in/P1g2L on line 6
Output for 5.1.0 - 5.1.6
2011-01-02 Warning: date() expects parameter 2 to be long, string given in /in/P1g2L on line 6
Output for 5.0.0 - 5.0.5
2010-12-19Thu
Output for 4.3.0 - 4.4.9
1970-01-01Thu