3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime(); $date->modify('sda'); echo $date->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.20 - 7.2.0
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:17
Output for 7.0.6
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-05-21 14:22:04
Output for 7.0.5
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-03 10:14:24
Output for 7.0.4
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-10 22:23:12
Output for 7.0.3
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-18 23:59:07
Output for 7.0.2
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-23 06:06:10
Output for 7.0.1
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-24 09:08:04
Output for 7.0.0
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-27 10:59:13
Output for 5.6.21
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-05-02 17:09:33
Output for 5.6.20
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-10 09:16:27
Output for 5.6.19
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-08 06:32:35
Output for 5.6.18
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-15 15:33:02
Output for 5.6.17
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-20 03:11:06
Output for 5.6.16
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-28 11:49:02
Output for 5.6.15
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-29 12:38:47
Output for 5.6.14
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-14 18:21:47
Output for 5.6.13
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-15 19:00:58
Output for 5.6.12
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-20 09:32:02
Output for 5.6.11
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-24 15:57:59
Output for 5.6.10
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-25 18:03:26
Output for 5.6.9
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-27 23:32:17
Output for 5.6.8
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-30 07:58:10
Output for 5.5.35
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-05-23 03:24:48
Output for 5.5.34
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-11 11:30:50
Output for 5.5.33
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-09 09:37:59
Output for 5.5.32
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-17 19:33:28
Output for 5.5.31
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-03-21 06:21:04
Output for 5.5.30
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-01 14:29:43
Output for 5.5.29
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-17 09:18:09
Output for 5.5.28
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-21 12:52:09
Output for 5.5.27
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-22 14:28:12
Output for 5.5.26
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-26 20:45:42
Output for 5.5.25
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-04-29 04:13:33
Output for 5.5.24
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-05-24 10:44:02
Output for 5.4.45
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:19
Output for 5.4.44
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:20
Output for 5.4.41 - 5.4.43
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:21
Output for 5.4.40
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:22
Output for 5.4.38 - 5.4.39
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:23
Output for 5.4.36 - 5.4.37
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:24
Output for 5.4.34 - 5.4.35
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:25
Output for 5.3.29, 5.4.31 - 5.4.32
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:26
Output for 5.4.27 - 5.4.30
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:27
Output for 5.4.23 - 5.4.26
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:28
Output for 5.3.28, 5.4.20 - 5.4.22
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:29
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.19
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:30
Output for 5.3.23 - 5.3.25, 5.4.13 - 5.4.16
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:31
Output for 5.3.22, 5.4.12
Warning: DateTime::modify(): Failed to parse time string (sda) at position 0 (s): The timezone could not be found in the database in /in/PC8Qh on line 5 2016-01-26 13:05:32