3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('2011-01-15 00:00:00'); $foo = strtotime('-1 month', $d);

preferences:
38.09 ms | 407 KiB | 5 Q