3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); echo $d->format('Ymd');
Output for 5.2.0 - 5.3.28, 5.4.0 - 5.4.27, 5.6.28, 7.0.14 - 7.1.0
20140426
Output for 7.0.6
20160503
Output for 7.0.5
20160403
Output for 7.0.4
20160310
Output for 7.0.3
20160318
Output for 7.0.2
20160322
Output for 7.0.1
20160324
Output for 7.0.0
20160327
Output for hhvm-3.10.0 - 3.12.0
20160330
Output for 5.6.21
20160502
Output for 5.6.20
20160410
Output for 5.6.19
20160307
Output for 5.6.18
20160315
Output for 5.6.17
20160319
Output for 5.6.16
20160328
Output for 5.6.15
20160329
Output for 5.6.14
20160402
Output for 5.6.13
20160415
Output for 5.6.12
20160420
Output for 5.6.11
20160423
Output for 5.6.10
20160425
Output for 5.6.9
20160427
Output for 5.6.8
20160430
Output for 5.5.35
20160522
Output for 5.5.34
20160411
Output for 5.5.33
20160309
Output for 5.5.32
20160317
Output for 5.5.31
20160320
Output for 5.5.30
20160401
Output for 5.5.29
20160417
Output for 5.5.28
20160421
Output for 5.5.27
20160422
Output for 5.5.26
20160426
Output for 5.5.25
20160428
Output for 5.5.24
20160524
Output for 5.4.45
20150909
Output for 5.4.44
20150827
Output for 5.4.43
20150710
Output for 5.4.42
20150629
Output for 5.4.38 - 5.4.41
20150610
Output for 5.4.36 - 5.4.37
20150205
Output for 5.4.34 - 5.4.35
20141115
Output for 5.3.29, 5.4.28 - 5.4.32
20140830
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/SnoDT on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/SnoDT on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/SnoDT on line 2