3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '2 months'; $n = strtotime('13 March 2014'); $t = time() - (strtotime($s, $n) - time()); echo date('M', $t);

preferences:
38.67 ms | 402 KiB | 5 Q