3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); echo $date->format('U = Y-m-d H:i:s') . "\n"; $date->setTimestamp(1406561202); echo $date->format('U = Y-m-d H:i:s') . "\n"; echo 'EXDATE;TZID="Central Europe Standard Time":'.$date->format('Ymd\THis'); ?>
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
1406558403 = 2014-07-28 16:40:03 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.3.32 - 7.3.33, 8.0.13
1406558403 = 2014-07-28 14:40:03 1406561202 = 2014-07-28 15:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T152642
Output for 7.0.6
1462289299 = 2016-05-03 17:28:19 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.5
1459655801 = 2016-04-03 05:56:41 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.4
1457627904 = 2016-03-10 17:38:24 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.3
1458321962 = 2016-03-18 18:26:02 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.2
1458690531 = 2016-03-23 00:48:51 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.1
1458790637 = 2016-03-24 04:37:17 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 7.0.0
1459053237 = 2016-03-27 06:33:57 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.21
1462185509 = 2016-05-02 12:38:29 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.20
1460256917 = 2016-04-10 04:55:17 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.19
1457398044 = 2016-03-08 01:47:24 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.18
1458033698 = 2016-03-15 10:21:38 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.17
1458421911 = 2016-03-19 22:11:51 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.16
1459142477 = 2016-03-28 07:21:17 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.15
1459231944 = 2016-03-29 08:12:24 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.14
1459584413 = 2016-04-02 10:06:53 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.13
1460723225 = 2016-04-15 14:27:05 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.12
1461120882 = 2016-04-20 04:54:42 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.11
1461488964 = 2016-04-24 11:09:24 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.10
1461583220 = 2016-04-25 13:20:20 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.9
1461774575 = 2016-04-27 18:29:35 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.6.8
1461979330 = 2016-04-30 03:22:10 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.35
1463935497 = 2016-05-22 18:44:57 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.34
1460351326 = 2016-04-11 07:08:46 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.33
1457493944 = 2016-03-09 04:25:44 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.32
1458219827 = 2016-03-17 14:03:47 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.31
1458518912 = 2016-03-21 01:08:32 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.30
1459497943 = 2016-04-01 10:05:43 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.29
1460861500 = 2016-04-17 04:51:40 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.28
1461218825 = 2016-04-21 08:07:05 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.27
1461311869 = 2016-04-22 09:57:49 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.26
1461679349 = 2016-04-26 16:02:29 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.25
1461876813 = 2016-04-28 22:53:33 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.5.24
1464060728 = 2016-05-24 05:32:08 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.45
1447332623 = 2015-11-12 13:50:23 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.44
1447332627 = 2015-11-12 13:50:27 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.43
1447332632 = 2015-11-12 13:50:32 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.42
1447332634 = 2015-11-12 13:50:34 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.41
1447332635 = 2015-11-12 13:50:35 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.40
1447332638 = 2015-11-12 13:50:38 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.39
1447332640 = 2015-11-12 13:50:40 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.38
1447332641 = 2015-11-12 13:50:41 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.36 - 5.4.37
1447332644 = 2015-11-12 13:50:44 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.35
1447332646 = 2015-11-12 13:50:46 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.34
1447332648 = 2015-11-12 13:50:48 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.32
1447332650 = 2015-11-12 13:50:50 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.29, 5.4.31
1447332651 = 2015-11-12 13:50:51 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.29 - 5.4.30
1447332653 = 2015-11-12 13:50:53 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.28
1447332654 = 2015-11-12 13:50:54 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.26 - 5.4.27
1447332656 = 2015-11-12 13:50:56 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.25
1447332657 = 2015-11-12 13:50:57 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.23 - 5.4.24
1447332659 = 2015-11-12 13:50:59 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.21 - 5.4.22
1447332662 = 2015-11-12 13:51:02 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.20
1447332663 = 2015-11-12 13:51:03 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.19
1447332664 = 2015-11-12 13:51:04 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.18
1447332665 = 2015-11-12 13:51:05 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.16 - 5.4.17
1447332667 = 2015-11-12 13:51:07 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.26, 5.4.15
1447332668 = 2015-11-12 13:51:08 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.25, 5.4.14
1447332669 = 2015-11-12 13:51:09 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.24, 5.4.13
1447332670 = 2015-11-12 13:51:10 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.23, 5.4.12
1447332671 = 2015-11-12 13:51:11 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.20, 5.4.11
1447332673 = 2015-11-12 13:51:13 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.9 - 5.4.10
1447332674 = 2015-11-12 13:51:14 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.18 - 5.3.19, 5.4.8
1447332675 = 2015-11-12 13:51:15 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.17, 5.4.7
1447332676 = 2015-11-12 13:51:16 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.6
1447332677 = 2015-11-12 13:51:17 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.14, 5.4.5
1447332679 = 2015-11-12 13:51:19 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.4.3 - 5.4.4
1447332680 = 2015-11-12 13:51:20 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.11, 5.4.1 - 5.4.2
1447332682 = 2015-11-12 13:51:22 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.10, 5.4.0
1447332683 = 2015-11-12 13:51:23 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.28
1447332660 = 2015-11-12 13:51:00 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.27
1447332666 = 2015-11-12 13:51:06 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.21 - 5.3.22
1447332672 = 2015-11-12 13:51:12 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.15 - 5.3.16
1447332678 = 2015-11-12 13:51:18 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.12 - 5.3.13
1447332681 = 2015-11-12 13:51:21 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.8 - 5.3.9
1447332684 = 2015-11-12 13:51:24 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.6 - 5.3.7
1447332685 = 2015-11-12 13:51:25 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.5
1447332686 = 2015-11-12 13:51:26 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.4
1447332687 = 2015-11-12 13:51:27 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.3
1447332688 = 2015-11-12 13:51:28 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.2
1447332689 = 2015-11-12 13:51:29 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.1
1447332691 = 2015-11-12 13:51:31 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.3.0
1447332692 = 2015-11-12 13:51:32 1406561202 = 2014-07-28 17:26:42 EXDATE;TZID="Central Europe Standard Time":20140728T172642
Output for 5.2.17
1447332686 = 2015-11-12 13:51:26 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.16
1447332687 = 2015-11-12 13:51:27 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.15
1447332688 = 2015-11-12 13:51:28 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.14
1447332689 = 2015-11-12 13:51:29 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.12 - 5.2.13
1447332690 = 2015-11-12 13:51:30 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.11
1447332691 = 2015-11-12 13:51:31 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.10
1447332692 = 2015-11-12 13:51:32 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.7 - 5.2.9
1447332693 = 2015-11-12 13:51:33 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.6
1447332694 = 2015-11-12 13:51:34 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.3 - 5.2.5
1447332695 = 2015-11-12 13:51:35 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.2
1447332696 = 2015-11-12 13:51:36 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.2.0 - 5.2.1
1447332697 = 2015-11-12 13:51:37 Fatal error: Call to undefined method DateTime::setTimestamp() in /in/KXWFU on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/KXWFU on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/KXWFU 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/KXWFU on line 3

preferences:
206.72 ms | 401 KiB | 313 Q