3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('n'); if(date('n') > 6){ echo date('Y') .' / '. date('Y', strtotime('+1 year')); }else{ echo date('Y') .' / '. date('Y', strtotime('-1 year')); }

preferences:
45.81 ms | 402 KiB | 5 Q