3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime(); echo $date->format('yyyy-mm-dd');
Output for 5.4.8 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
15151515-1010-1515
Output for 7.0.6
16161616-0505-0303
Output for 7.0.5
16161616-0404-0303
Output for 7.0.4
16161616-0303-1010
Output for 7.0.3
16161616-0303-1818
Output for 7.0.2
16161616-0303-2222
Output for 7.0.1
16161616-0303-2323
Output for 7.0.0
16161616-0303-2727
Output for 5.6.21
16161616-0505-0202
Output for 5.6.20
16161616-0404-1010
Output for 5.6.19
16161616-0303-0707
Output for 5.6.18
16161616-0303-1515
Output for 5.6.17
16161616-0303-1919
Output for 5.6.16
16161616-0303-2828
Output for 5.6.15
16161616-0303-2929
Output for 5.6.14
16161616-0404-0202
Output for 5.6.13
16161616-0404-1515
Output for 5.6.12
16161616-0404-1919
Output for 5.6.11
16161616-0404-2323
Output for 5.6.10
16161616-0404-2525
Output for 5.6.9
16161616-0404-2727
Output for 5.6.8
16161616-0404-2929
Output for 5.5.35
16161616-0505-2222
Output for 5.5.34
16161616-0404-1111
Output for 5.5.33
16161616-0303-0808
Output for 5.5.32
16161616-0303-1717
Output for 5.5.31
16161616-0303-2020
Output for 5.5.30
16161616-0404-0101
Output for 5.5.29
16161616-0404-1616
Output for 5.5.28
16161616-0404-2121
Output for 5.5.27
16161616-0404-2222
Output for 5.5.26
16161616-0404-2626
Output for 5.5.25
16161616-0404-2828
Output for 5.5.24
16161616-0505-2424
Output for 5.4.2 - 5.4.7
15151515-1010-2727
Output for 5.3.28 - 5.3.29
15151515-1010-3131
Output for 5.3.18 - 5.3.27
15151515-1111-0202