3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'mickmackusa'; $yob = fn(?int $age): ?int => !$age ? null : ( fn($birthYear) => $birthYear * print "$name's birth year is $birthYear\n" )(date('Y') - $age); var_export($yob(null)); echo "\n---\n"; var_export($yob(31));

preferences:
25.12 ms | 405 KiB | 5 Q