3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("W", mktime(0, 0, 0, 01, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 02, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 03, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 04, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 05, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 06, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 07, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 08, 01, 2018))."<br>"; echo date("W", mktime(0, 0, 0, 09, 01, 2018))."<br>";
Output for 7.0.0 - 7.0.2
Parse error: Invalid numeric literal in /in/96STr on line 10
Process exited with code 255.
Output for 5.5.0 - 5.6.28
01<br>05<br>09<br>13<br>18<br>22<br>26<br>48<br>48<br>