3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new DateTime('2013-01-04'); echo $obj->format('r'); $obj->modify('20 weekdays'); echo $obj->format('r');
Output for 5.5.0 - 7.1.0
Fri, 04 Jan 2013 00:00:00 +0100Fri, 01 Feb 2013 00:00:00 +0100
Output for 5.3.0 - 5.4.45
Fri, 04 Jan 2013 00:00:00 +0100Sun, 03 Feb 2013 00:00:00 +0100
Output for 5.2.0 - 5.2.17
Fri, 04 Jan 2013 00:00:00 +0100Fri, 04 Jan 2013 00:00:00 +0100
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/Y4X8m 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/Y4X8m 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/Y4X8m on line 2