3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); for ($i = 1; $i <= 10; $i++) { $date->modify('+1 day'); echo date("dmY",$date); } ?>
based on RWZfj
Output for 7.0.0 - 7.2.0
Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be integer, object given in /in/D8YUA on line 7
Output for 5.4.0 - 5.6.28
Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7 Warning: date() expects parameter 2 to be long, object given in /in/D8YUA on line 7