3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = time(); $last_30d = strtotime(date('Y-m-d',strtotime('-30 day', $now))); echo $last_30d;

preferences:
42.72 ms | 402 KiB | 5 Q