3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $date->modify('fifth day of next month'); var_dump($date);
Output for 7.1.0
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-29 16:22:23.003990" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.14
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-29 16:22:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 10:13:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 23:01:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 09:36:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 10:15:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-22 16:14:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 20:50:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 22:23:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.12.0
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-12 12:48:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.10.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-05 11:54:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 05:33:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 21:58:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 17:44:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 01:48:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 14:29:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 00:10:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-29 01:15:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 03:34:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 07:29:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 21:16:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-23 04:19:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 06:03:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 11:01:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 19:10:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 09:20:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-11 00:19:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 20:41:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 03:23:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 17:15:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 03:12:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 21:35:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 00:31:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 02:50:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 08:29:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 14:48:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 22:09:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:29:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:29:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.43
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:29:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:28:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:28:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:28:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.39
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-21 14:28:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.38
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-15 08:01:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.37
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-15 08:01:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.36
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-15 08:01:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.32
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-29 16:22:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.20 - 5.4.29
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-29 16:22:27" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28 - 5.4.19
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-29 16:22:28" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.6 - 5.3.27
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-29 16:22:29" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.2 - 5.3.5
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-29 16:22:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.0 - 5.3.1
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-11-03 16:22:30" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.2.13 - 5.2.17
Warning: DateTime::modify(): Failed to parse time string (fifth day of next month) at position 10 (o): The timezone could not be found in the database in /in/3SDn1 on line 5 object(DateTime)#1 (0) { }
Output for 5.2.0 - 5.2.12
object(DateTime)#1 (0) { }
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/3SDn1 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/3SDn1 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/3SDn1 on line 3