3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $day = strtotime("1/1/13"); for ($i=0;$i++<=365;$day=strtotime("tomorrow",$day)) echo date('F jS',$day);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
January 1stJanuary 2ndJanuary 3rdJanuary 4thJanuary 5thJanuary 6thJanuary 7thJanuary 8thJanuary 9thJanuary 10thJanuary 11thJanuary 12thJanuary 13thJanuary 14thJanuary 15thJanuary 16thJanuary 17thJanuary 18thJanuary 19thJanuary 20thJanuary 21stJanuary 22ndJanuary 23rdJanuary 24thJanuary 25thJanuary 26thJanuary 27thJanuary 28thJanuary 29thJanuary 30thJanuary 31stFebruary 1stFebruary 2ndFebruary 3rdFebruary 4thFebruary 5thFebruary 6thFebruary 7thFebruary 8thFebruary 9thFebruary 10thFebruary 11thFebruary 12thFebruary 13thFebruary 14thFebruary 15thFebruary 16thFebruary 17thFebruary 18thFebruary 19thFebruary 20thFebruary 21stFebruary 22ndFebruary 23rdFebruary 24thFebruary 25thFebruary 26thFebruary 27thFebruary 28thMarch 1stMarch 2ndMarch 3rdMarch 4thMarch 5thMarch 6thMarch 7thMarch 8thMarch 9thMarch 10thMarch 11thMarch 12thMarch 13thMarch 14thMarch 15thMarch 16thMarch 17thMarch 18thMarch 19thMarch 20thMarch 21stMarch 22ndMarch 23rdMarch 24thMarch 25thMarch 26thMarch 27thMarch 28thMarch 29thMarch 30thMarch 31stApril 1stApril 2ndApril 3rdApril 4thApril 5thApril 6thApril 7thApril 8thApril 9thApril 10thApril 11thApril 12thApril 13thApril 14thApril 15thApril 16thApril 17thApril 18thApril 19thApril 20thApril 21stApril 22ndApril 23rdApril 24thApril 25thApril 26thApril 27thApril 28thApril 29thApril 30thMay 1stMay 2ndMay 3rdMay 4thMay 5thMay 6thMay 7thMay 8thMay 9thMay 10thMay 11thMay 12thMay 13thMay 14thMay 15thMay 16thMay 17thMay 18thMay 19thMay 20thMay 21stMay 22ndMay 23rdMay 24thMay 25thMay 26thMay 27thMay 28thMay 29thMay 30thMay 31stJune 1stJune 2ndJune 3rdJune 4thJune 5thJune 6thJune 7thJune 8thJune 9thJune 10thJune 11thJune 12thJune 13thJune 14thJune 15thJune 16thJune 17thJune 18thJune 19thJune 20thJune 21stJune 22ndJune 23rdJune 24thJune 25thJune 26thJune 27thJune 28thJune 29thJune 30thJuly 1stJuly 2ndJuly 3rdJuly 4thJuly 5thJuly 6thJuly 7thJuly 8thJuly 9thJuly 10thJuly 11thJuly 12thJuly 13thJuly 14thJuly 15thJuly 16thJuly 17thJuly 18thJuly 19thJuly 20thJuly 21stJuly 22ndJuly 23rdJuly 24thJuly 25thJuly 26thJuly 27thJuly 28thJuly 29thJuly 30thJuly 31stAugust 1stAugust 2ndAugust 3rdAugust 4thAugust 5thAugust 6thAugust 7thAugust 8thAugust 9thAugust 10thAugust 11thAugust 12thAugust 13thAugust 14thAugust 15thAugust 16thAugust 17thAugust 18thAugust 19thAugust 20thAugust 21stAugust 22ndAugust 23rdAugust 24thAugust 25thAugust 26thAugust 27thAugust 28thAugust 29thAugust 30thAugust 31stSeptember 1stSeptember 2ndSeptember 3rdSeptember 4thSeptember 5thSeptember 6thSeptember 7thSeptember 8thSeptember 9thSeptember 10thSeptember 11thSeptember 12thSeptember 13thSeptember 14thSeptember 15thSeptember 16thSeptember 17thSeptember 18thSeptember 19thSeptember 20thSeptember 21stSeptember 22ndSeptember 23rdSeptember 24thSeptember 25thSeptember 26thSeptember 27thSeptember 28thSeptember 29thSeptember 30thOctober 1stOctober 2ndOctober 3rdOctober 4thOctober 5thOctober 6thOctober 7thOctober 8thOctober 9thOctober 10thOctober 11thOctober 12thOctober 13thOctober 14thOctober 15thOctober 16thOctober 17thOctober 18thOctober 19thOctober 20thOctober 21stOctober 22ndOctober 23rdOctober 24thOctober 25thOctober 26thOctober 27thOctober 28thOctober 29thOctober 30thOctober 31stNovember 1stNovember 2ndNovember 3rdNovember 4thNovember 5thNovember 6thNovember 7thNovember 8thNovember 9thNovember 10thNovember 11thNovember 12thNovember 13thNovember 14thNovember 15thNovember 16thNovember 17thNovember 18thNovember 19thNovember 20thNovember 21stNovember 22ndNovember 23rdNovember 24thNovember 25thNovember 26thNovember 27thNovember 28thNovember 29thNovember 30thDecember 1stDecember 2ndDecember 3rdDecember 4thDecember 5thDecember 6thDecember 7thDecember 8thDecember 9thDecember 10thDecember 11thDecember 12thDecember 13thDecember 14thDecember 15thDecember 16thDecember 17thDecember 18thDecember 19thDecember 20thDecember 21stDecember 22ndDecember 23rdDecember 24thDecember 25thDecember 26thDecember 27thDecember 28thDecember 29thDecember 30thDecember 31stJanuary 1st