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 $date->format('dmY'). "\n"; } ?>
based on B6dI0
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>/n30102015 29102015 28102015 27102015 26102015 25102015 24102015 23102015 22102015 21102015
Output for 7.0.6
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n12052016 11052016 10052016 09052016 08052016 07052016 06052016 05052016 04052016 03052016
Output for 7.0.5
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n11042016 10042016 09042016 08042016 07042016 06042016 05042016 04042016 03042016 02042016
Output for 7.0.4
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n18032016 17032016 16032016 15032016 14032016 13032016 12032016 11032016 10032016 09032016
Output for 7.0.3
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n26032016 25032016 24032016 23032016 22032016 21032016 20032016 19032016 18032016 17032016
Output for 7.0.2
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n30032016 29032016 28032016 27032016 26032016 25032016 24032016 23032016 22032016 21032016
Output for 7.0.1
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n01042016 31032016 30032016 29032016 28032016 27032016 26032016 25032016 24032016 23032016
Output for 7.0.0
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n04042016 03042016 02042016 01042016 31032016 30032016 29032016 28032016 27032016 26032016
Output for 5.6.21
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n10052016 09052016 08052016 07052016 06052016 05052016 04052016 03052016 02052016 01052016
Output for 5.6.20
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n18042016 17042016 16042016 15042016 14042016 13042016 12042016 11042016 10042016 09042016
Output for 5.6.19
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n15032016 14032016 13032016 12032016 11032016 10032016 09032016 08032016 07032016 06032016
Output for 5.6.18
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n23032016 22032016 21032016 20032016 19032016 18032016 17032016 16032016 15032016 14032016
Output for 5.6.17
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n28032016 27032016 26032016 25032016 24032016 23032016 22032016 21032016 20032016 19032016
Output for 5.6.16
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n05042016 04042016 03042016 02042016 01042016 31032016 30032016 29032016 28032016 27032016
Output for 5.6.15
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n06042016 05042016 04042016 03042016 02042016 01042016 31032016 30032016 29032016 28032016
Output for 5.6.14
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n10042016 09042016 08042016 07042016 06042016 05042016 04042016 03042016 02042016 01042016
Output for 5.6.13
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n23042016 22042016 21042016 20042016 19042016 18042016 17042016 16042016 15042016 14042016
Output for 5.6.12
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n28042016 27042016 26042016 25042016 24042016 23042016 22042016 21042016 20042016 19042016
Output for 5.6.11
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n01052016 30042016 29042016 28042016 27042016 26042016 25042016 24042016 23042016 22042016
Output for 5.6.10
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n03052016 02052016 01052016 30042016 29042016 28042016 27042016 26042016 25042016 24042016
Output for 5.6.9
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n06052016 05052016 04052016 03052016 02052016 01052016 30042016 29042016 28042016 27042016
Output for 5.6.8
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n08052016 07052016 06052016 05052016 04052016 03052016 02052016 01052016 30042016 29042016
Output for 5.6.7
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n02062016 01062016 31052016 30052016 29052016 28052016 27052016 26052016 25052016 24052016
Output for 5.5.35
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n30052016 29052016 28052016 27052016 26052016 25052016 24052016 23052016 22052016 21052016
Output for 5.5.34
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n19042016 18042016 17042016 16042016 15042016 14042016 13042016 12042016 11042016 10042016
Output for 5.5.33
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n17032016 16032016 15032016 14032016 13032016 12032016 11032016 10032016 09032016 08032016
Output for 5.5.32
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n24032016 23032016 22032016 21032016 20032016 19032016 18032016 17032016 16032016 15032016
Output for 5.5.31
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n29032016 28032016 27032016 26032016 25032016 24032016 23032016 22032016 21032016 20032016
Output for 5.5.30
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n09042016 08042016 07042016 06042016 05042016 04042016 03042016 02042016 01042016 31032016
Output for 5.5.29
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n25042016 24042016 23042016 22042016 21042016 20042016 19042016 18042016 17042016 16042016
Output for 5.5.28
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n29042016 28042016 27042016 26042016 25042016 24042016 23042016 22042016 21042016 20042016
Output for 5.5.27
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n30042016 29042016 28042016 27042016 26042016 25042016 24042016 23042016 22042016 21042016
Output for 5.5.26
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n04052016 03052016 02052016 01052016 30042016 29042016 28042016 27042016 26042016 25042016
Output for 5.5.25
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n07052016 06052016 05052016 04052016 03052016 02052016 01052016 30042016 29042016 28042016
Output for 5.5.24
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel>/n09052016 08052016 07052016 06052016 05052016 04052016 03052016 02052016 01052016 30042016