3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); echo $d->format('His.u');
Output for 7.3.0rc4
131904.002342
Output for 7.3.0rc3
131904.002238
Output for 7.3.0beta1
131904.003218
Output for 7.3.0alpha1
131904.003653
Output for 7.2.6
131904.004222
Output for 7.2.0
131904.031262
Output for 7.1.20
131904.002065
Output for 7.1.10
131904.003910
Output for 7.1.7
131904.002504
Output for 7.1.6
131904.011846
Output for 7.1.5
131904.005519
Output for 7.1.0
131904.004885
Output for 5.3.3, 5.3.10, 5.3.16, 5.3.28, 5.4.6, 5.4.8, 5.4.12, 5.4.15 - 5.4.25, 7.0.14 - 7.0.20
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.2.2 - 5.3.2, 5.3.4 - 5.3.9, 5.3.11 - 5.3.15, 5.3.17 - 5.3.27, 5.4.0 - 5.4.5, 5.4.7, 5.4.9 - 5.4.11, 5.4.13 - 5.4.14
131903.000000
Output for 5.3.29
133914.000000
Output for 5.2.0 - 5.2.1
131903.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