3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"; echo "<rss version=\"2.0\">\n"; echo "<channel>\n"; $date = new DateTime('now'); $date->modify('+10 day'); for ($i = 1; $i <= 10; $i++) { $date->modify('-1 day'); echo "<item>\n"; echo "<title>". $date->format('dmY'). "</title>\n"; echo "</item>\n"; } echo "</channel>\n"; echo "</rss>\n"; ?>
based on SNGvt
Output for 5.3.19 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>30102015</title> </item> <item> <title>29102015</title> </item> <item> <title>28102015</title> </item> <item> <title>27102015</title> </item> <item> <title>26102015</title> </item> <item> <title>25102015</title> </item> <item> <title>24102015</title> </item> <item> <title>23102015</title> </item> <item> <title>22102015</title> </item> <item> <title>21102015</title> </item> </channel> </rss>
Output for 7.0.6
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>12052016</title> </item> <item> <title>11052016</title> </item> <item> <title>10052016</title> </item> <item> <title>09052016</title> </item> <item> <title>08052016</title> </item> <item> <title>07052016</title> </item> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> </channel> </rss>
Output for 7.0.5
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>11042016</title> </item> <item> <title>10042016</title> </item> <item> <title>09042016</title> </item> <item> <title>08042016</title> </item> <item> <title>07042016</title> </item> <item> <title>06042016</title> </item> <item> <title>05042016</title> </item> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> </channel> </rss>
Output for 7.0.4
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>18032016</title> </item> <item> <title>17032016</title> </item> <item> <title>16032016</title> </item> <item> <title>15032016</title> </item> <item> <title>14032016</title> </item> <item> <title>13032016</title> </item> <item> <title>12032016</title> </item> <item> <title>11032016</title> </item> <item> <title>10032016</title> </item> <item> <title>09032016</title> </item> </channel> </rss>
Output for 7.0.3
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>26032016</title> </item> <item> <title>25032016</title> </item> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> <item> <title>20032016</title> </item> <item> <title>19032016</title> </item> <item> <title>18032016</title> </item> <item> <title>17032016</title> </item> </channel> </rss>
Output for 7.0.2
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>30032016</title> </item> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> <item> <title>26032016</title> </item> <item> <title>25032016</title> </item> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> </channel> </rss>
Output for 7.0.1
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>01042016</title> </item> <item> <title>31032016</title> </item> <item> <title>30032016</title> </item> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> <item> <title>26032016</title> </item> <item> <title>25032016</title> </item> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> </channel> </rss>
Output for 7.0.0
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> <item> <title>01042016</title> </item> <item> <title>31032016</title> </item> <item> <title>30032016</title> </item> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> <item> <title>26032016</title> </item> </channel> </rss>
Output for 5.6.21
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>10052016</title> </item> <item> <title>09052016</title> </item> <item> <title>08052016</title> </item> <item> <title>07052016</title> </item> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> </channel> </rss>
Output for 5.6.20
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>18042016</title> </item> <item> <title>17042016</title> </item> <item> <title>16042016</title> </item> <item> <title>15042016</title> </item> <item> <title>14042016</title> </item> <item> <title>13042016</title> </item> <item> <title>12042016</title> </item> <item> <title>11042016</title> </item> <item> <title>10042016</title> </item> <item> <title>09042016</title> </item> </channel> </rss>
Output for 5.6.19
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>15032016</title> </item> <item> <title>14032016</title> </item> <item> <title>13032016</title> </item> <item> <title>12032016</title> </item> <item> <title>11032016</title> </item> <item> <title>10032016</title> </item> <item> <title>09032016</title> </item> <item> <title>08032016</title> </item> <item> <title>07032016</title> </item> <item> <title>06032016</title> </item> </channel> </rss>
Output for 5.6.18
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> <item> <title>20032016</title> </item> <item> <title>19032016</title> </item> <item> <title>18032016</title> </item> <item> <title>17032016</title> </item> <item> <title>16032016</title> </item> <item> <title>15032016</title> </item> <item> <title>14032016</title> </item> </channel> </rss>
Output for 5.6.17
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> <item> <title>26032016</title> </item> <item> <title>25032016</title> </item> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> <item> <title>20032016</title> </item> <item> <title>19032016</title> </item> </channel> </rss>
Output for 5.6.16
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>05042016</title> </item> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> <item> <title>01042016</title> </item> <item> <title>31032016</title> </item> <item> <title>30032016</title> </item> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> </channel> </rss>
Output for 5.6.15
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>06042016</title> </item> <item> <title>05042016</title> </item> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> <item> <title>01042016</title> </item> <item> <title>31032016</title> </item> <item> <title>30032016</title> </item> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> </channel> </rss>
Output for 5.6.14
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>10042016</title> </item> <item> <title>09042016</title> </item> <item> <title>08042016</title> </item> <item> <title>07042016</title> </item> <item> <title>06042016</title> </item> <item> <title>05042016</title> </item> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> <item> <title>01042016</title> </item> </channel> </rss>
Output for 5.6.13
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> <item> <title>21042016</title> </item> <item> <title>20042016</title> </item> <item> <title>19042016</title> </item> <item> <title>18042016</title> </item> <item> <title>17042016</title> </item> <item> <title>16042016</title> </item> <item> <title>15042016</title> </item> <item> <title>14042016</title> </item> </channel> </rss>
Output for 5.6.12
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> <item> <title>21042016</title> </item> <item> <title>20042016</title> </item> <item> <title>19042016</title> </item> </channel> </rss>
Output for 5.6.11
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> </channel> </rss>
Output for 5.6.10
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> </channel> </rss>
Output for 5.6.9
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> </channel> </rss>
Output for 5.6.8
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>08052016</title> </item> <item> <title>07052016</title> </item> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> </channel> </rss>
Output for 5.6.7
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>02062016</title> </item> <item> <title>01062016</title> </item> <item> <title>31052016</title> </item> <item> <title>30052016</title> </item> <item> <title>29052016</title> </item> <item> <title>28052016</title> </item> <item> <title>27052016</title> </item> <item> <title>26052016</title> </item> <item> <title>25052016</title> </item> <item> <title>24052016</title> </item> </channel> </rss>
Output for 5.5.35
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>30052016</title> </item> <item> <title>29052016</title> </item> <item> <title>28052016</title> </item> <item> <title>27052016</title> </item> <item> <title>26052016</title> </item> <item> <title>25052016</title> </item> <item> <title>24052016</title> </item> <item> <title>23052016</title> </item> <item> <title>22052016</title> </item> <item> <title>21052016</title> </item> </channel> </rss>
Output for 5.5.34
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>19042016</title> </item> <item> <title>18042016</title> </item> <item> <title>17042016</title> </item> <item> <title>16042016</title> </item> <item> <title>15042016</title> </item> <item> <title>14042016</title> </item> <item> <title>13042016</title> </item> <item> <title>12042016</title> </item> <item> <title>11042016</title> </item> <item> <title>10042016</title> </item> </channel> </rss>
Output for 5.5.33
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>17032016</title> </item> <item> <title>16032016</title> </item> <item> <title>15032016</title> </item> <item> <title>14032016</title> </item> <item> <title>13032016</title> </item> <item> <title>12032016</title> </item> <item> <title>11032016</title> </item> <item> <title>10032016</title> </item> <item> <title>09032016</title> </item> <item> <title>08032016</title> </item> </channel> </rss>
Output for 5.5.32
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> <item> <title>20032016</title> </item> <item> <title>19032016</title> </item> <item> <title>18032016</title> </item> <item> <title>17032016</title> </item> <item> <title>16032016</title> </item> <item> <title>15032016</title> </item> </channel> </rss>
Output for 5.5.31
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>29032016</title> </item> <item> <title>28032016</title> </item> <item> <title>27032016</title> </item> <item> <title>26032016</title> </item> <item> <title>25032016</title> </item> <item> <title>24032016</title> </item> <item> <title>23032016</title> </item> <item> <title>22032016</title> </item> <item> <title>21032016</title> </item> <item> <title>20032016</title> </item> </channel> </rss>
Output for 5.5.30
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>09042016</title> </item> <item> <title>08042016</title> </item> <item> <title>07042016</title> </item> <item> <title>06042016</title> </item> <item> <title>05042016</title> </item> <item> <title>04042016</title> </item> <item> <title>03042016</title> </item> <item> <title>02042016</title> </item> <item> <title>01042016</title> </item> <item> <title>31032016</title> </item> </channel> </rss>
Output for 5.5.29
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> <item> <title>21042016</title> </item> <item> <title>20042016</title> </item> <item> <title>19042016</title> </item> <item> <title>18042016</title> </item> <item> <title>17042016</title> </item> <item> <title>16042016</title> </item> </channel> </rss>
Output for 5.5.28
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> <item> <title>21042016</title> </item> <item> <title>20042016</title> </item> </channel> </rss>
Output for 5.5.27
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> <item> <title>24042016</title> </item> <item> <title>23042016</title> </item> <item> <title>22042016</title> </item> <item> <title>21042016</title> </item> </channel> </rss>
Output for 5.5.26
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> <item> <title>27042016</title> </item> <item> <title>26042016</title> </item> <item> <title>25042016</title> </item> </channel> </rss>
Output for 5.5.25
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>07052016</title> </item> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> <item> <title>29042016</title> </item> <item> <title>28042016</title> </item> </channel> </rss>
Output for 5.5.24
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <item> <title>09052016</title> </item> <item> <title>08052016</title> </item> <item> <title>07052016</title> </item> <item> <title>06052016</title> </item> <item> <title>05052016</title> </item> <item> <title>04052016</title> </item> <item> <title>03052016</title> </item> <item> <title>02052016</title> </item> <item> <title>01052016</title> </item> <item> <title>30042016</title> </item> </channel> </rss>