3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime(); try { $date->modify('sda'); } catch(\Exception $e) { echo "Oops!"; } echo $date->format('Y-m-d H:i:s');
based on lVuW6
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/iOUL9 on line 6 2016-01-26 13:07:14
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/iOUL9 on line 6 2016-05-21 14:22:03
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/iOUL9 on line 6 2016-04-03 10:14:22
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/iOUL9 on line 6 2016-03-10 22:23:10
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/iOUL9 on line 6 2016-03-18 23:59:05
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/iOUL9 on line 6 2016-03-23 06:06:08
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/iOUL9 on line 6 2016-03-24 09:08:03
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/iOUL9 on line 6 2016-03-27 10:59:11
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/iOUL9 on line 6 2016-05-02 17:09:31
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/iOUL9 on line 6 2016-04-10 09:16:26
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/iOUL9 on line 6 2016-03-08 06:32:34
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/iOUL9 on line 6 2016-03-15 15:33:00
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/iOUL9 on line 6 2016-03-20 03:11:04
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/iOUL9 on line 6 2016-03-28 11:49:01
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/iOUL9 on line 6 2016-03-29 12:38:46
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/iOUL9 on line 6 2016-04-14 18:21:46
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/iOUL9 on line 6 2016-04-15 19:00:56
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/iOUL9 on line 6 2016-04-20 09:32:01
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/iOUL9 on line 6 2016-04-24 15:57:58
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/iOUL9 on line 6 2016-04-25 18:03:25
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/iOUL9 on line 6 2016-04-27 23:32:15
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/iOUL9 on line 6 2016-04-30 07:58:08
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/iOUL9 on line 6 2016-05-23 03:24:46
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/iOUL9 on line 6 2016-04-11 11:30:48
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/iOUL9 on line 6 2016-03-09 09:37:57
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/iOUL9 on line 6 2016-03-17 19:33:26
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/iOUL9 on line 6 2016-03-21 06:21:02
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/iOUL9 on line 6 2016-04-01 14:29:42
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/iOUL9 on line 6 2016-04-17 09:18:08
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/iOUL9 on line 6 2016-04-21 12:52:08
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/iOUL9 on line 6 2016-04-22 14:28:10
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/iOUL9 on line 6 2016-04-26 20:45:40
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/iOUL9 on line 6 2016-04-29 04:13:31
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/iOUL9 on line 6 2016-05-24 10:44:01
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/iOUL9 on line 6 2016-01-26 13:07:17
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/iOUL9 on line 6 2016-01-26 13:07:18
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/iOUL9 on line 6 2016-01-26 13:07:19
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/iOUL9 on line 6 2016-01-26 13:07:20
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/iOUL9 on line 6 2016-01-26 13:07:21
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/iOUL9 on line 6 2016-01-26 13:07:22
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/iOUL9 on line 6 2016-01-26 13:07:23
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/iOUL9 on line 6 2016-01-26 13:07:24
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/iOUL9 on line 6 2016-01-26 13:07:25
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/iOUL9 on line 6 2016-01-26 13:07:26
Output for 5.3.28, 5.4.21 - 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/iOUL9 on line 6 2016-01-26 13:07:27
Output for 5.3.27, 5.4.18 - 5.4.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/iOUL9 on line 6 2016-01-26 13:07:28
Output for 5.3.25 - 5.3.26, 5.4.15 - 5.4.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/iOUL9 on line 6 2016-01-26 13:07:29
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.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/iOUL9 on line 6 2016-01-26 13:07:30