3v4l.org

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

preferences:
36.19 ms | 402 KiB | 5 Q