3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $this_year = date("Y", strtotime("-6 month")); echo "\n"; echo $this_year - 1; ?>

preferences:
39.45 ms | 402 KiB | 5 Q