3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 3; $date = new DateTime(); print $date->format('YmdHis');
Output for 5.6.28, 7.0.14 - 7.1.0
20140606182255
Output for 7.0.6
20160503085929
Output for 7.0.5
20160402215342
Output for 7.0.4
20160310081928
Output for 7.0.3
20160318085415
Output for 7.0.2
20160322143959
Output for 7.0.1
20160323193848
Output for 7.0.0
20160326211258
Output for 5.6.21
20160502042017
Output for 5.6.20
20160409204845
Output for 5.6.19
20160307162752
Output for 5.6.18
20160315001454
Output for 5.6.17
20160319131205
Output for 5.6.16
20160327225825
Output for 5.6.15
20160328235125
Output for 5.6.14
20160402022623
Output for 5.6.13
20160415062015
Output for 5.6.12
20160419200032
Output for 5.6.11
20160423030656
Output for 5.6.10
20160425045001
Output for 5.6.9
20160427094746
Output for 5.6.8
20160429175135
Output for 5.5.35
20160522080504
Output for 5.5.34
20160410231047
Output for 5.5.33
20160308192429
Output for 5.5.32
20160317020521
Output for 5.5.31
20160320155745
Output for 5.5.30
20160401015847
Output for 5.5.29
20160416202525
Output for 5.5.28
20160420230705
Output for 5.5.27
20160422013719
Output for 5.5.26
20160426071707
Output for 5.5.25
20160428132135
Output for 5.5.24
20160523203602
Output for 5.4.45
20150905034232
Output for 5.4.44
20150905034228
Output for 5.4.43
20150905034225
Output for 5.4.42
20150905034224
Output for 5.4.41
20150905034222
Output for 5.4.40
20150905034220
Output for 5.4.39
20150905034219
Output for 5.4.38
20150303225323
Output for 5.4.36 - 5.4.37
20150303225316
Output for 5.4.34 - 5.4.35
20150303225315
Output for 5.4.32
20140912163140
Output for 5.4.31
20140912163138
Output for 5.4.30
20140912163132
Output for 5.4.27 - 5.4.29
20140606182258
Output for 5.4.14 - 5.4.26
20140606182259
Output for 5.3.27 - 5.3.28, 5.4.0 - 5.4.13
20140606182300
Output for 5.3.29
20140912163133
Output for 5.3.14 - 5.3.26
20140606182301
Output for 5.3.0 - 5.3.13
20140606182302
Output for 5.2.2 - 5.2.17
20140606182303
Output for 5.2.0 - 5.2.1
20140606182304
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/UE1qY on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/UE1qY on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/UE1qY on line 4