3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row['value'] = "1899.01.16"; try { $date = new DateTime($row['value']); } catch (Exception $e) { echo $e->getMessage(); exit(1); } echo $date->format("F j, Y"); ?>
Output for 5.2.0 - 5.3.28, 5.4.0 - 5.4.25, 5.6.28, 7.0.14 - 7.1.0
February 25, 1899
Output for 7.0.6
May 3, 1899
Output for 7.0.5
April 2, 1899
Output for 7.0.4
March 10, 1899
Output for 7.0.3
March 18, 1899
Output for 7.0.2
March 21, 1899
Output for 7.0.1
March 23, 1899
Output for 7.0.0
March 26, 1899
Output for hhvm-3.12.0
March 11, 1899
Output for hhvm-3.10.0
March 29, 1899
Output for 5.6.21
May 1, 1899
Output for 5.6.20
April 9, 1899
Output for 5.6.19
March 6, 1899
Output for 5.6.18
March 14, 1899
Output for 5.6.17
March 19, 1899
Output for 5.6.16
March 27, 1899
Output for 5.6.15
March 28, 1899
Output for 5.6.14
April 1, 1899
Output for 5.6.13
April 14, 1899
Output for 5.6.12
April 19, 1899
Output for 5.6.11
April 22, 1899
Output for 5.6.10
April 24, 1899
Output for 5.6.9
April 27, 1899
Output for 5.6.8
April 29, 1899
Output for 5.5.35
May 22, 1899
Output for 5.5.34
April 10, 1899
Output for 5.5.33
March 8, 1899
Output for 5.5.32
March 16, 1899
Output for 5.5.31
March 20, 1899
Output for 5.5.30
March 31, 1899
Output for 5.5.29
April 16, 1899
Output for 5.5.28
April 20, 1899
Output for 5.5.27
April 21, 1899
Output for 5.5.26
April 25, 1899
Output for 5.5.25
April 28, 1899
Output for 5.5.24
April 30, 1899
Output for 5.4.41 - 5.4.45
September 14, 1899
Output for 5.4.39 - 5.4.40
May 8, 1899
Output for 5.4.38
March 2, 1899
Output for 5.4.36 - 5.4.37
February 8, 1899
Output for 5.4.34 - 5.4.35
December 4, 1899
Output for 5.3.29, 5.4.26 - 5.4.32
September 6, 1899
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/Clic4 on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/Clic4 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/Clic4 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Clic4 on line 5
Process exited with code 255.