3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('now'); var_dump($a->format('YY- MM -DD HH:II:SS'));
based on 1SuCj
Output for 5.4.8 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
string(37) "20152015- SepSep -TueTue 1717:11:thth"
Output for 7.0.6
string(37) "20162016- MayMay -TueTue 0707:11:rdrd"
Output for 7.0.5
string(37) "20162016- AprApr -SatSat 2020:11:ndnd"
Output for 7.0.4
string(37) "20162016- MarMar -ThuThu 0606:00:thth"
Output for 7.0.3
string(37) "20162016- MarMar -FriFri 0606:00:thth"
Output for 7.0.2
string(37) "20162016- MarMar -TueTue 1212:00:ndnd"
Output for 7.0.1
string(37) "20162016- MarMar -WedWed 1717:00:rdrd"
Output for 7.0.0
string(37) "20162016- MarMar -SatSat 1919:00:thth"
Output for 5.6.21
string(37) "20162016- MayMay -MonMon 0202:11:ndnd"
Output for 5.6.20
string(37) "20162016- AprApr -SatSat 1616:11:thth"
Output for 5.6.19
string(37) "20162016- MarMar -MonMon 0707:00:thth"
Output for 5.6.18
string(37) "20162016- MarMar -MonMon 2020:00:thth"
Output for 5.6.17
string(37) "20162016- MarMar -SatSat 1111:00:thth"
Output for 5.6.16
string(37) "20162016- MarMar -SunSun 2121:11:thth"
Output for 5.6.15
string(37) "20162016- MarMar -MonMon 2121:11:thth"
Output for 5.6.14
string(37) "20162016- AprApr -SatSat 0000:11:ndnd"
Output for 5.6.13
string(37) "20162016- AprApr -FriFri 0404:11:thth"
Output for 5.6.12
string(37) "20162016- AprApr -TueTue 1818:11:thth"
Output for 5.6.11
string(37) "20162016- AprApr -SatSat 0101:11:rdrd"
Output for 5.6.10
string(37) "20162016- AprApr -MonMon 0202:11:thth"
Output for 5.6.9
string(37) "20162016- AprApr -WedWed 0707:11:thth"
Output for 5.6.8
string(37) "20162016- AprApr -FriFri 1515:11:thth"
Output for 5.6.7
string(37) "20162016- MayMay -WedWed 0808:11:thth"
Output for 5.5.35
string(37) "20162016- MayMay -SunSun 0606:11:ndnd"
Output for 5.5.34
string(37) "20162016- AprApr -SunSun 2121:11:thth"
Output for 5.5.33
string(37) "20162016- MarMar -TueTue 1717:00:thth"
Output for 5.5.32
string(37) "20162016- MarMar -WedWed 2323:00:thth"
Output for 5.5.31
string(37) "20162016- MarMar -SunSun 1313:00:thth"
Output for 5.5.30
string(37) "20162016- MarMar -ThuThu 2323:11:stst"
Output for 5.5.29
string(37) "20162016- AprApr -SatSat 1818:11:thth"
Output for 5.5.28
string(37) "20162016- AprApr -WedWed 2121:11:thth"
Output for 5.5.27
string(37) "20162016- AprApr -ThuThu 2323:11:stst"
Output for 5.5.26
string(37) "20162016- AprApr -TueTue 0505:11:thth"
Output for 5.5.25
string(37) "20162016- AprApr -ThuThu 1111:11:thth"
Output for 5.5.24
string(37) "20162016- MayMay -MonMon 1818:11:rdrd"
Output for 5.4.7
string(37) "20152015- OctOct -TueTue 0101:00:thth"
Output for 5.4.6
string(37) "20152015- OctOct -TueTue 0303:00:thth"
Output for 5.4.5
string(37) "20152015- OctOct -TueTue 0404:00:thth"
Output for 5.4.4
string(37) "20152015- OctOct -TueTue 0606:00:thth"
Output for 5.4.3
string(37) "20152015- OctOct -TueTue 0707:00:thth"
Output for 5.4.2
string(37) "20152015- OctOct -TueTue 0909:00:thth"
Output for 5.3.18 - 5.3.29
string(37) "20152015- OctOct -FriFri 1010:11:ndnd"