3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $yr = "2013"; $week = "01"; //$day = date("N", strtotime("Monday")); $day = 2; echo date("Y-m-d", strtotime($yr . "W" . $week . $day)); // "2014W011"
Output for 5.0.0 - 5.0.5, 5.1.1 - 7.1.0
2013-01-01
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/8dulj on line 6
Process exited with code 255.
Output for 4.3.0 - 4.4.9
1970-01-01