3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime("tomorrow"); var_dump($date->format(DateTime::ATOM));
Output for 5.2.0 - 5.3.28, 5.4.0 - 5.4.24, 7.0.14 - 7.1.0
string(25) "2014-02-11T00:00:00+01:00"
Output for 7.0.6
string(25) "2016-05-04T00:00:00+02:00"
Output for 7.0.5
string(25) "2016-04-03T00:00:00+02:00"
Output for 7.0.4
string(25) "2016-03-11T00:00:00+01:00"
Output for 7.0.3
string(25) "2016-03-19T00:00:00+01:00"
Output for 7.0.2
string(25) "2016-03-22T00:00:00+01:00"
Output for 7.0.1
string(25) "2016-03-24T00:00:00+01:00"
Output for 7.0.0
string(25) "2016-03-27T00:00:00+01:00"
Output for hhvm-3.12.0
string(25) "2016-03-12T00:00:00+01:00"
Output for hhvm-3.10.0
string(25) "2016-03-30T00:00:00+02:00"
Output for 5.6.21
string(25) "2016-05-02T00:00:00+02:00"
Output for 5.6.20
string(25) "2016-04-10T00:00:00+02:00"
Output for 5.6.19
string(25) "2016-03-07T00:00:00+01:00"
Output for 5.6.18
string(25) "2016-03-15T00:00:00+01:00"
Output for 5.6.17
string(25) "2016-03-20T00:00:00+01:00"
Output for 5.6.16
string(25) "2016-03-28T00:00:00+02:00"
Output for 5.6.15
string(25) "2016-03-29T00:00:00+02:00"
Output for 5.6.14
string(25) "2016-04-02T00:00:00+02:00"
Output for 5.6.13
string(25) "2016-04-15T00:00:00+02:00"
Output for 5.6.12
string(25) "2016-04-20T00:00:00+02:00"
Output for 5.6.11
string(25) "2016-04-23T00:00:00+02:00"
Output for 5.6.10
string(25) "2016-04-25T00:00:00+02:00"
Output for 5.6.9
string(25) "2016-04-28T00:00:00+02:00"
Output for 5.6.8
string(25) "2016-04-30T00:00:00+02:00"
Output for 5.6.7
string(25) "2016-05-25T00:00:00+02:00"
Output for 5.5.35
string(25) "2016-05-23T00:00:00+02:00"
Output for 5.5.34
string(25) "2016-04-11T00:00:00+02:00"
Output for 5.5.33
string(25) "2016-03-09T00:00:00+01:00"
Output for 5.5.32
string(25) "2016-03-17T00:00:00+01:00"
Output for 5.5.31
string(25) "2016-03-21T00:00:00+01:00"
Output for 5.5.30
string(25) "2016-04-01T00:00:00+02:00"
Output for 5.5.29
string(25) "2016-04-17T00:00:00+02:00"
Output for 5.5.28
string(25) "2016-04-21T00:00:00+02:00"
Output for 5.5.27
string(25) "2016-04-22T00:00:00+02:00"
Output for 5.5.26
string(25) "2016-04-26T00:00:00+02:00"
Output for 5.5.25
string(25) "2016-04-29T00:00:00+02:00"
Output for 5.5.24
string(25) "2016-05-01T00:00:00+02:00"
Output for 5.4.45
string(25) "2015-09-14T00:00:00+02:00"
Output for 5.4.41 - 5.4.44
string(25) "2015-08-16T00:00:00+02:00"
Output for 5.4.39 - 5.4.40
string(25) "2015-05-09T00:00:00+02:00"
Output for 5.4.38
string(25) "2015-03-03T00:00:00+01:00"
Output for 5.4.36 - 5.4.37
string(25) "2015-02-09T00:00:00+01:00"
Output for 5.4.34 - 5.4.35
string(25) "2014-12-05T00:00:00+01:00"
Output for 5.3.29, 5.4.25 - 5.4.32
string(25) "2014-09-07T00:00:00+02:00"
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/91EbP on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/91EbP on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ')', expecting '(' in /in/91EbP on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/91EbP on line 4
Process exited with code 255.