3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); echo $d->format('His.u');
Output for 7.1.0
131904.004885
Output for 7.0.14
131904.000000
Output for 7.0.7
141904.000000
Output for 7.0.6
232509.000000
Output for 7.0.5
125911.000000
Output for 7.0.4
214849.000000
Output for 7.0.3
221315.000000
Output for 7.0.2
085810.000000
Output for 7.0.1
083629.000000
Output for 7.0.0
114929.000000
Output for 5.6.21
183005.000000
Output for 5.6.20
081822.000000
Output for 5.6.19
184635.000000
Output for 5.6.18
071309.000000
Output for 5.6.17
024659.000000
Output for 5.6.16
133149.000000
Output for 5.6.15
142202.000000
Output for 5.6.14
171546.000000
Output for 5.6.13
211222.000000
Output for 5.6.12
101145.000000
Output for 5.6.11
173305.000000
Output for 5.6.10
191026.000000
Output for 5.6.9
000650.000000
Output for 5.6.8
074556.000000
Output for 5.6.7
171642.000000
Output for 5.5.35
213646.000000
Output for 5.5.34
134232.000000
Output for 5.5.33
085644.000000
Output for 5.5.32
180205.000000
Output for 5.5.31
054425.000000
Output for 5.5.30
163452.000000
Output for 5.5.29
110851.000000
Output for 5.5.28
131506.000000
Output for 5.5.27
160259.000000
Output for 5.5.26
212312.000000
Output for 5.5.25
032721.000000
Output for 5.5.24
111307.000000
Output for 5.4.45
161445.000000
Output for 5.4.44
203450.000000
Output for 5.4.43
203447.000000
Output for 5.4.42
203446.000000
Output for 5.4.41
203444.000000
Output for 5.4.39 - 5.4.40
203441.000000
Output for 5.4.38
131222.000000
Output for 5.4.36 - 5.4.37
212822.000000
Output for 5.4.34 - 5.4.35
095939.000000
Output for 5.4.32
133926.000000
Output for 5.4.31
133919.000000
Output for 5.4.29 - 5.4.30
133912.000000
Output for 5.4.28
133911.000000
Output for 5.4.26 - 5.4.27
133921.000000
Output for 5.4.5 - 5.4.25
131905.000000
Output for 5.3.13 - 5.3.28, 5.4.0 - 5.4.4
131906.000000
Output for 5.3.29
133914.000000
Output for 5.2.7 - 5.3.12
131907.000000
Output for 5.2.2 - 5.2.6
131908.000000
Output for 5.2.0 - 5.2.1
131908.u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/YRMDW on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/YRMDW on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/YRMDW on line 3