3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new \DateTime())->format('Y-m-d H:i:s'); echo gmmktime();
Output for 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.4, 8.3.6
2015-10-16 21:06:16 Fatal error: Uncaught ArgumentCountError: gmmktime() expects at least 1 argument, 0 given in /in/Uuaik:3 Stack trace: #0 /in/Uuaik(3): gmmktime() #1 {main} thrown in /in/Uuaik on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 2015-10-16 21:06:16 Fatal error: Uncaught ArgumentCountError: gmmktime() expects at least 1 argument, 0 given in /in/Uuaik:3 Stack trace: #0 /in/Uuaik(3): gmmktime() #1 {main} thrown in /in/Uuaik on line 3
Process exited with code 255.
Output for 8.0.13
2015-10-16 19:06:16 Fatal error: Uncaught ArgumentCountError: gmmktime() expects at least 1 argument, 0 given in /in/Uuaik:3 Stack trace: #0 /in/Uuaik(3): gmmktime() #1 {main} thrown in /in/Uuaik on line 3
Process exited with code 255.
Output for 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
2015-10-16 21:06:16 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022376
Output for 7.3.32 - 7.3.33
2015-10-16 19:06:161445022376
Output for 7.0.6
2016-05-03 12:09:54 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1462270194
Output for 7.0.5
2016-04-03 00:53:57 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459637637
Output for 7.0.4
2016-03-10 11:36:28 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1457606188
Output for 7.0.3
2016-03-18 12:19:53 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458299993
Output for 7.0.2
2016-03-22 18:17:39 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458667059
Output for 7.0.1
2016-03-23 22:41:14 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458769274
Output for 7.0.0
2016-03-27 00:10:49 Deprecated: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459033849
Output for 5.6.28
2015-10-16 21:06:16 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022376
Output for 5.6.21
2016-05-02 07:23:20 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1462166600
Output for 5.6.20
2016-04-09 23:44:59 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1460238299
Output for 5.6.19
2016-03-07 19:38:34 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1457375914
Output for 5.6.18
2016-03-15 04:12:21 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458011541
Output for 5.6.17
2016-03-19 16:28:52 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458401332
Output for 5.6.16
2016-03-28 02:08:33 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459123713
Output for 5.6.15
2016-03-29 03:04:08 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459213448
Output for 5.6.14
2016-04-02 05:15:47 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459566947
Output for 5.6.13
2016-04-15 09:14:44 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1460704484
Output for 5.6.12
2016-04-19 23:11:51 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461100311
Output for 5.6.11
2016-04-23 06:08:07 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461384487
Output for 5.6.10
2016-04-25 07:54:34 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461563674
Output for 5.6.9
2016-04-27 12:58:18 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461754698
Output for 5.6.8
2016-04-29 21:08:44 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461956924
Output for 5.5.35
2016-05-22 11:09:44 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1463908184
Output for 5.5.34
2016-04-11 02:06:14 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1460333174
Output for 5.5.33
2016-03-08 22:36:46 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1457473006
Output for 5.5.32
2016-03-17 06:09:19 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458191359
Output for 5.5.31
2016-03-20 19:12:16 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1458497536
Output for 5.5.30
2016-04-01 04:58:41 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1459479521
Output for 5.5.29
2016-04-16 23:22:40 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1460841760
Output for 5.5.28
2016-04-21 02:31:34 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461198694
Output for 5.5.27
2016-04-22 04:48:59 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461293339
Output for 5.5.26
2016-04-26 10:26:39 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461659199
Output for 5.5.25
2016-04-28 16:53:09 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1461855189
Output for 5.5.24
2016-05-24 00:00:15 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1464040815
Output for 5.4.45
2015-10-16 21:06:26 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022386
Output for 5.4.37 - 5.4.44
2015-10-16 21:06:27 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022387
Output for 5.4.29 - 5.4.36
2015-10-16 21:06:28 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022388
Output for 5.4.23 - 5.4.28
2015-10-16 21:06:29 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022389
Output for 5.4.14 - 5.4.22
2015-10-16 21:06:30 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022390
Output for 5.4.8 - 5.4.13
2015-10-16 21:06:31 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445022391
Output for 5.4.7
2015-10-27 01:59:22 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445907562
Output for 5.4.6
2015-10-27 03:28:13 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445912893
Output for 5.4.5
2015-10-27 04:58:29 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445918309
Output for 5.4.4
2015-10-27 06:35:32 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445924132
Output for 5.4.3
2015-10-27 08:16:57 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445930217
Output for 5.4.2
2015-10-27 10:01:55 Strict Standards: gmmktime(): You should be using the time() function instead in /in/Uuaik on line 3 1445936515

preferences:
209.2 ms | 401 KiB | 240 Q