3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date("w","2011-11-11")."<br />"; echo date("w","2011-11-12")."<br />"; echo date("w","2011-11-13")."<br />"; echo date("w","2011-11-14")."<br />"; echo date("w","2011-11-15")."<br />"; echo date("w","2011-11-16")."<br />"; echo date("w","2011-11-17")."<br />";
Output for 5.1.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/m7bkt on line 2 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 3 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 4 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 5 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 6 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 7 4<br /> Notice: A non well formed numeric value encountered in /in/m7bkt on line 8 4<br />
Output for 4.3.0 - 5.0.5
4<br />4<br />4<br />4<br />4<br />4<br />4<br />