3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo(strtotime('-12 months').'\n'); echo(strtotime('now -12 months').'\n'); echo(strtotime('now').'\n'); echo(strtotime(null).'\n');
Output for 5.1.2 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
1369228793\n1369228793\n1400764793\n\n
Output for hhvm-3.12.0
1369228793\n1369228793\n1400764793\n Warning: strtotime() expects parameter 1 to be string, null given in /in/44T9s on line 5 \n
Output for 5.1.0 - 5.1.1
1369228793\n1369228793\n1400764793\n1400764793\n
Output for 5.0.3 - 5.0.5
1369228793\n1369228793\n1400764793\n Warning: strtotime(): Called with an empty time parameter. in /in/44T9s on line 5 -1\n
Output for 5.0.1 - 5.0.2
1369173600\n1369173600\n1400709600\n Warning: strtotime(): Called with an empty time parameter. in /in/44T9s on line 5 -1\n
Output for 5.0.0
1369173600\n1369173600\n1400709600\n Notice: strtotime(): Called with empty time parameter in /in/44T9s on line 5 1400709600\n
Output for 4.3.2 - 4.4.9
1369228793\n1369228793\n1400764793\n Notice: strtotime(): Called with empty time parameter in /in/44T9s on line 5 1400709600\n
Output for 4.3.0 - 4.3.1
1369228793\n1369228793\n1400764793\n Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/44T9s on line 5 1400709600\n