3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = (string) intval(date('Y'))-1; echo $x;

preferences:
39.17 ms | 402 KiB | 5 Q