3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo(strtotime('-12 months').'\n'); echo(strtotime('now -12 months').'\n'); echo(strtotime('now').'\n'); echo(strtotime(null).'\n');
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
1369228793\n1369228793\n1400764793\n Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/44T9s on line 5 \n
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.5 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
1369228793\n1369228793\n1400764793\n\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.3.11, 4.4.0 - 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

preferences:
260.29 ms | 401 KiB | 380 Q