3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Moscow'); $date = new DateTime('Europe/Moscow'); echo "Sunday 09. \n"; $date->setISODate(2014, 32, 0); echo 'setISODate(2014, 32, 0) => '.$date->format('Y-m-d H:i:s')."\n"; $date->setISODate(2014, 32, 6); echo 'setISODate(2014, 32, 6) => '.$date->format('Y-m-d H:i:s')."\n"; $date->setISODate(2014, 32, 7); echo 'setISODate(2014, 32, 7) => '.$date->format('Y-m-d H:i:s')."\n"; /* $d = new DateTime('2014-08-09'); //echo 'format('.$d->format('Y, W, w').') <= 2014-08-09' . "\n"; echo "sunday 10. \n";$date->setISODate(2014, 32, 0); $d = new DateTime('2014-08-10'); echo 'setISODate(2014, 32, 0) => '.$date->format('Y-m-d H:i:s')."\n"; $d = new DateTime('2014-08-10'); echo 'format('.$d->format('Y, W, w').') <= 2014-08-10' . "\n\n";*/
based on cSqj2
Output for 5.6.28, 7.0.14 - 7.1.0
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:31 setISODate(2014, 32, 6) => 2014-08-09 13:42:31 setISODate(2014, 32, 7) => 2014-08-10 13:42:31
Output for 7.0.6
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 08:32:57 setISODate(2014, 32, 6) => 2014-08-09 08:32:57 setISODate(2014, 32, 7) => 2014-08-10 08:32:57
Output for 7.0.5
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 21:31:44 setISODate(2014, 32, 6) => 2014-08-09 21:31:44 setISODate(2014, 32, 7) => 2014-08-10 21:31:44
Output for 7.0.4
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 08:44:25 setISODate(2014, 32, 6) => 2014-08-09 08:44:25 setISODate(2014, 32, 7) => 2014-08-10 08:44:25
Output for 7.0.3
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 09:14:19 setISODate(2014, 32, 6) => 2014-08-09 09:14:19 setISODate(2014, 32, 7) => 2014-08-10 09:14:19
Output for 7.0.2
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 14:59:14 setISODate(2014, 32, 6) => 2014-08-09 14:59:14 setISODate(2014, 32, 7) => 2014-08-10 14:59:14
Output for 7.0.1
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 20:04:54 setISODate(2014, 32, 6) => 2014-08-09 20:04:54 setISODate(2014, 32, 7) => 2014-08-10 20:04:54
Output for 7.0.0
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 21:46:04 setISODate(2014, 32, 6) => 2014-08-09 21:46:04 setISODate(2014, 32, 7) => 2014-08-10 21:46:04
Output for hhvm-3.12.0
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 18:16:57 setISODate(2014, 32, 6) => 2014-08-09 18:16:57 setISODate(2014, 32, 7) => 2014-08-10 18:16:57
Output for hhvm-3.10.0
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 06:27:33 setISODate(2014, 32, 6) => 2014-08-09 06:27:33 setISODate(2014, 32, 7) => 2014-08-10 06:27:33
Output for 5.6.21
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 03:50:43 setISODate(2014, 32, 6) => 2014-08-09 03:50:43 setISODate(2014, 32, 7) => 2014-08-10 03:50:43
Output for 5.6.20
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 18:59:08 setISODate(2014, 32, 6) => 2014-08-09 18:59:08 setISODate(2014, 32, 7) => 2014-08-10 18:59:08
Output for 5.6.19
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 10:54:21 setISODate(2014, 32, 6) => 2014-08-09 10:54:21 setISODate(2014, 32, 7) => 2014-08-10 10:54:21
Output for 5.6.18
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 23:54:52 setISODate(2014, 32, 6) => 2014-08-09 23:54:52 setISODate(2014, 32, 7) => 2014-08-10 23:54:52
Output for 5.6.17
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:33:31 setISODate(2014, 32, 6) => 2014-08-09 13:33:31 setISODate(2014, 32, 7) => 2014-08-10 13:33:31
Output for 5.6.16
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 22:31:00 setISODate(2014, 32, 6) => 2014-08-09 22:31:00 setISODate(2014, 32, 7) => 2014-08-10 22:31:00
Output for 5.6.15
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 23:24:55 setISODate(2014, 32, 6) => 2014-08-09 23:24:55 setISODate(2014, 32, 7) => 2014-08-10 23:24:55
Output for 5.6.14
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 01:52:35 setISODate(2014, 32, 6) => 2014-08-09 01:52:35 setISODate(2014, 32, 7) => 2014-08-10 01:52:35
Output for 5.6.13
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 05:54:51 setISODate(2014, 32, 6) => 2014-08-09 05:54:51 setISODate(2014, 32, 7) => 2014-08-10 05:54:51
Output for 5.6.12
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 19:28:58 setISODate(2014, 32, 6) => 2014-08-09 19:28:58 setISODate(2014, 32, 7) => 2014-08-10 19:28:58
Output for 5.6.11
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 02:27:14 setISODate(2014, 32, 6) => 2014-08-09 02:27:14 setISODate(2014, 32, 7) => 2014-08-10 02:27:14
Output for 5.6.10
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 04:19:39 setISODate(2014, 32, 6) => 2014-08-09 04:19:39 setISODate(2014, 32, 7) => 2014-08-10 04:19:39
Output for 5.6.9
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 09:16:56 setISODate(2014, 32, 6) => 2014-08-09 09:16:56 setISODate(2014, 32, 7) => 2014-08-10 09:16:56
Output for 5.6.8
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 17:14:14 setISODate(2014, 32, 6) => 2014-08-09 17:14:14 setISODate(2014, 32, 7) => 2014-08-10 17:14:14
Output for 5.6.7
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 10:26:01 setISODate(2014, 32, 6) => 2014-08-09 10:26:01 setISODate(2014, 32, 7) => 2014-08-10 10:26:01
Output for 5.5.35
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 07:30:28 setISODate(2014, 32, 6) => 2014-08-09 07:30:28 setISODate(2014, 32, 7) => 2014-08-10 07:30:28
Output for 5.5.34
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 22:46:17 setISODate(2014, 32, 6) => 2014-08-09 22:46:17 setISODate(2014, 32, 7) => 2014-08-10 22:46:17
Output for 5.5.33
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 19:38:38 setISODate(2014, 32, 6) => 2014-08-09 19:38:38 setISODate(2014, 32, 7) => 2014-08-10 19:38:38
Output for 5.5.32
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 02:01:13 setISODate(2014, 32, 6) => 2014-08-09 02:01:13 setISODate(2014, 32, 7) => 2014-08-10 02:01:13
Output for 5.5.31
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 16:21:32 setISODate(2014, 32, 6) => 2014-08-09 16:21:32 setISODate(2014, 32, 7) => 2014-08-10 16:21:32
Output for 5.5.30
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 01:26:03 setISODate(2014, 32, 6) => 2014-08-09 01:26:03 setISODate(2014, 32, 7) => 2014-08-10 01:26:03
Output for 5.5.29
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 19:59:47 setISODate(2014, 32, 6) => 2014-08-09 19:59:47 setISODate(2014, 32, 7) => 2014-08-10 19:59:47
Output for 5.5.28
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 22:34:27 setISODate(2014, 32, 6) => 2014-08-09 22:34:27 setISODate(2014, 32, 7) => 2014-08-10 22:34:27
Output for 5.5.27
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 00:58:55 setISODate(2014, 32, 6) => 2014-08-09 00:58:55 setISODate(2014, 32, 7) => 2014-08-10 00:58:55
Output for 5.5.26
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 06:44:55 setISODate(2014, 32, 6) => 2014-08-09 06:44:55 setISODate(2014, 32, 7) => 2014-08-10 06:44:55
Output for 5.5.25
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 12:47:50 setISODate(2014, 32, 6) => 2014-08-09 12:47:50 setISODate(2014, 32, 7) => 2014-08-10 12:47:50
Output for 5.5.24
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 19:44:08 setISODate(2014, 32, 6) => 2014-08-09 19:44:08 setISODate(2014, 32, 7) => 2014-08-10 19:44:08
Output for 5.4.45
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:32 setISODate(2014, 32, 6) => 2014-08-09 13:18:32 setISODate(2014, 32, 7) => 2014-08-10 13:18:32
Output for 5.4.44
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:25 setISODate(2014, 32, 6) => 2014-08-09 13:18:25 setISODate(2014, 32, 7) => 2014-08-10 13:18:25
Output for 5.4.43
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:17 setISODate(2014, 32, 6) => 2014-08-09 13:18:17 setISODate(2014, 32, 7) => 2014-08-10 13:18:17
Output for 5.4.42
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:14 setISODate(2014, 32, 6) => 2014-08-09 13:18:14 setISODate(2014, 32, 7) => 2014-08-10 13:18:14
Output for 5.4.41
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:11 setISODate(2014, 32, 6) => 2014-08-09 13:18:11 setISODate(2014, 32, 7) => 2014-08-10 13:18:11
Output for 5.4.40
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:07 setISODate(2014, 32, 6) => 2014-08-09 13:18:07 setISODate(2014, 32, 7) => 2014-08-10 13:18:07
Output for 5.4.39
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:18:04 setISODate(2014, 32, 6) => 2014-08-09 13:18:04 setISODate(2014, 32, 7) => 2014-08-10 13:18:04
Output for 5.4.38
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 15:12:54 setISODate(2014, 32, 6) => 2014-08-09 15:12:54 setISODate(2014, 32, 7) => 2014-08-10 15:12:54
Output for 5.4.36 - 5.4.37
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 15:12:47 setISODate(2014, 32, 6) => 2014-08-09 15:12:47 setISODate(2014, 32, 7) => 2014-08-10 15:12:47
Output for 5.4.34 - 5.4.35
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 15:12:46 setISODate(2014, 32, 6) => 2014-08-09 15:12:46 setISODate(2014, 32, 7) => 2014-08-10 15:12:46
Output for 5.3.29, 5.4.32
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:00:02 setISODate(2014, 32, 6) => 2014-08-09 13:00:02 setISODate(2014, 32, 7) => 2014-08-10 13:00:02
Output for 5.4.25 - 5.4.31
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:35 setISODate(2014, 32, 6) => 2014-08-09 13:42:35 setISODate(2014, 32, 7) => 2014-08-10 13:42:35
Output for 5.4.4 - 5.4.24
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:36 setISODate(2014, 32, 6) => 2014-08-09 13:42:36 setISODate(2014, 32, 7) => 2014-08-10 13:42:36
Output for 5.3.12 - 5.3.28, 5.4.0 - 5.4.3
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:37 setISODate(2014, 32, 6) => 2014-08-09 13:42:37 setISODate(2014, 32, 7) => 2014-08-10 13:42:37
Output for 5.2.9 - 5.3.11
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:38 setISODate(2014, 32, 6) => 2014-08-09 13:42:38 setISODate(2014, 32, 7) => 2014-08-10 13:42:38
Output for 5.2.0 - 5.2.8
Sunday 09. setISODate(2014, 32, 0) => 2014-08-03 13:42:39 setISODate(2014, 32, 6) => 2014-08-09 13:42:39 setISODate(2014, 32, 7) => 2014-08-10 13:42:39
Output for 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/3t9OG on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/3t9OG on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/3t9OG on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/3t9OG on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/3t9OG on line 7