3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date('d.m.Y H:i:s', time())); var_dump(mktime()); var_dump(strtotime('Today GMT')); var_dump(date('d.m.Y H:i:s', strtotime('Today GMT'))); ?>
based on lY2mB
Output for 7.0.0 - 7.1.0
string(19) "22.10.2014 16:33:06" Deprecated: mktime(): You should be using the time() function instead in /in/63jJX on line 3 int(1413988386) int(1413936000) string(19) "22.10.2014 02:00:00"
Output for 5.1.2 - 5.6.28
string(19) "22.10.2014 16:33:06" Strict Standards: mktime(): You should be using the time() function instead in /in/63jJX on line 3 int(1413988386) int(1413936000) string(19) "22.10.2014 02:00:00"
Output for 5.1.0 - 5.1.1
string(19) "22.10.2014 16:33:06" Strict Standards: mktime(): You should be using the time() function instead in /in/63jJX on line 3 int(1413988386) bool(false) string(19) "01.01.1970 01:00:00"
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
string(19) "22.10.2014 16:33:06" int(1413988386) int(1413995586) string(19) "22.10.2014 18:33:06"
Output for 5.0.0 - 5.0.2
string(19) "22.10.2014 16:33:06" int(1413988386) int(1413936000) string(19) "22.10.2014 02:00:00"