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('0000-00-00').'\n');
Output for 5.6.28, 7.0.14 - 7.1.0
1369228373\n1369228373\n1400764373\n-62169985172\n
Output for 5.2.6 - 5.5.20, 5.5.22 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.8
1369228358\n1369228358\n1400764358\n-62169985172\n
Output for 5.5.21
1369228359\n1369228359\n1400764359\n-62169985172\n
Output for 5.2.4 - 5.2.5
1369228358\n1369228358\n1400764358\n\n
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.2.3
1369228358\n1369228358\n1400764358\n943916400\n
Output for 5.0.0 - 5.0.2
1369173600\n1369173600\n1400709600\n943916400\n