3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Asia/Tokyo'); echo date('Y-m-d H:i:s'), PHP_EOL; echo date('Y-m-d H:i:s', time());
Output for 7.0.6
2016-05-03 08:23:48 2016-05-03 08:23:48
Output for 7.0.5
2016-04-02 21:43:14 2016-04-02 21:43:14
Output for 7.0.4
2016-03-10 07:45:15 2016-03-10 07:45:15
Output for 7.0.3
2016-03-18 08:12:14 2016-03-18 08:12:14
Output for 7.0.2
2016-03-21 18:51:39 2016-03-21 18:51:39
Output for 7.0.1
2016-03-23 19:02:39 2016-03-23 19:02:39
Output for 7.0.0
2016-03-26 21:31:06 2016-03-26 21:31:06
Output for hhvm-3.12.0
2016-03-11 11:46:17 2016-03-11 11:46:17
Output for hhvm-3.11.0
2016-03-24 22:45:26 2016-03-24 22:45:26
Output for hhvm-3.10.0
2016-03-30 01:10:59 2016-03-30 01:10:59
Output for hhvm-3.9.1
2016-04-17 21:56:49 2016-04-17 21:56:49
Output for 5.6.21
2016-05-02 03:28:09 2016-05-02 03:28:09
Output for 5.6.20
2016-04-09 16:58:00 2016-04-09 16:58:00
Output for 5.6.19
2016-03-07 05:36:55 2016-03-07 05:36:55
Output for 5.6.18
2016-03-14 17:41:21 2016-03-14 17:41:21
Output for 5.6.17
2016-03-19 12:45:07 2016-03-19 12:45:07
Output for 5.6.16
2016-03-27 22:22:39 2016-03-27 22:22:39
Output for 5.6.15
2016-03-28 23:17:20 2016-03-28 23:17:20
Output for 5.6.14
2016-04-02 01:58:33 2016-04-02 01:58:33
Output for 5.6.13
2016-04-15 05:45:57 2016-04-15 05:45:57
Output for 5.6.12
2016-04-19 18:51:36 2016-04-19 18:51:36
Output for 5.6.11
2016-04-23 02:09:02 2016-04-23 02:09:02
Output for 5.6.10
2016-04-25 03:48:03 2016-04-25 03:48:03
Output for 5.6.9
2016-04-27 08:53:59 2016-04-27 08:53:59
Output for 5.6.8
2016-04-29 16:28:09 2016-04-29 16:28:09
Output for 5.5.34
2016-04-10 22:51:46 2016-04-10 22:51:46
Output for 5.5.33
2016-03-08 19:00:02 2016-03-08 19:00:02
Output for 5.5.32
2016-03-16 03:57:43 2016-03-16 03:57:43
Output for 5.5.31
2016-03-20 15:38:56 2016-03-20 15:38:56
Output for 5.5.30
2016-04-01 01:20:27 2016-04-01 01:20:27
Output for 5.5.29
2016-04-16 19:50:17 2016-04-16 19:50:17
Output for 5.5.28
2016-04-20 22:03:11 2016-04-20 22:03:11
Output for 5.5.27
2016-04-22 00:40:12 2016-04-22 00:40:12
Output for 5.5.26
2016-04-26 06:04:18 2016-04-26 06:04:18
Output for 5.5.25
2016-04-28 12:11:17 2016-04-28 12:11:17
Output for 5.5.24
2016-04-30 19:47:34 2016-04-30 19:47:34
Output for 5.4.45
2015-09-13 11:07:30 2015-09-13 11:07:30
Output for 5.4.44
2015-09-13 11:07:27 2015-09-13 11:07:27
Output for 5.4.43
2015-09-13 11:07:24 2015-09-13 11:07:24
Output for 5.4.42
2015-07-06 13:45:56 2015-07-06 13:45:56
Output for 5.4.41
2015-05-27 03:37:24 2015-05-27 03:37:24
Output for 5.4.39 - 5.4.40
2015-05-03 20:46:27 2015-05-03 20:46:27
Output for 5.4.38
2015-03-02 00:17:52 2015-03-02 00:17:52
Output for 5.4.36 - 5.4.37
2015-02-07 13:59:36 2015-02-07 13:59:36
Output for 5.4.35
2014-12-03 21:59:55 2014-12-03 21:59:55
Output for 5.4.34
2014-12-03 21:59:54 2014-12-03 21:59:54
Output for 5.4.32
2014-09-05 22:05:29 2014-09-05 22:05:29
Output for 5.4.31
2014-09-05 22:05:28 2014-09-05 22:05:28
Output for 5.4.18 - 5.4.30
2014-07-12 12:45:33 2014-07-12 12:45:33
Output for 5.3.25 - 5.3.28, 5.4.0 - 5.4.17
2014-07-12 12:45:34 2014-07-12 12:45:34
Output for 5.3.29
2014-09-05 22:05:27 2014-09-05 22:05:27
Output for 5.3.5 - 5.3.24
2014-07-12 12:45:35 2014-07-12 12:45:35
Output for 5.1.6 - 5.3.4
2014-07-12 12:45:36 2014-07-12 12:45:36
Output for 5.1.0 - 5.1.5
2014-07-12 12:45:37 2014-07-12 12:45:37
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/EPU52 on line 3
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/EPU52 on line 3
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/EPU52 on line 3
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/EPU52 on line 3