3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = mktime(2, 1, 1, 3, 31, 2013, 1); var_dump($a); $b = strtotime('2013-03-31 02:01:01'); var_dump($b);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught ArgumentCountError: mktime() expects at most 6 arguments, 7 given in /in/3lpIY:2 Stack trace: #0 /in/3lpIY(2): mktime(2, 1, 1, 3, 31, 2013, 1) #1 {main} thrown in /in/3lpIY on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Warning: mktime() expects at most 6 parameters, 7 given in /in/3lpIY on line 2 bool(false) int(1364691661)
Output for 7.3.32 - 7.3.33, 7.4.26
Warning: mktime() expects at most 6 parameters, 7 given in /in/3lpIY on line 2 bool(false) int(1364695261)
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Deprecated: mktime(): The is_dst parameter is deprecated in /in/3lpIY on line 2 int(1364691661) int(1364691661)
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Strict Standards: mktime(): The is_dst parameter is deprecated in /in/3lpIY on line 2 int(1364691661) int(1364691661)
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
int(1364688061) int(1364691661)

preferences:
296.18 ms | 402 KiB | 424 Q