3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date(DateTime::ATOM);
Output for 5.2.3, 5.2.5, 5.2.11, 5.3.1 - 5.3.5, 5.3.11, 5.3.14 - 5.3.15, 5.3.18 - 5.3.19, 5.3.29 - 5.4.0, 5.4.3, 5.4.5 - 5.4.6, 5.4.9, 5.4.11 - 5.4.12, 5.4.15 - 7.2.0
2017-04-24T10:26:14+02:00
Output for 5.2.0 - 5.2.2, 5.2.4, 5.2.6 - 5.2.10, 5.2.12 - 5.3.0, 5.3.6 - 5.3.10, 5.3.12 - 5.3.13, 5.3.16 - 5.3.17, 5.3.20 - 5.3.28, 5.4.1 - 5.4.2, 5.4.4, 5.4.7 - 5.4.8, 5.4.10, 5.4.13 - 5.4.14
2017-04-24T10:26:13+02:00
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/jdSjj on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ')', expecting '(' in /in/jdSjj on line 3
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/jdSjj on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/jdSjj on line 3
Process exited with code 255.