3v4l.org

run code in 300+ PHP versions simultaneously
<?php setLocale(LC_CTYPE, 'russian'); $string = 'Привет'; if (ctype_alnum($string)) { echo "This string totally works"; } else { echo "And this one not so much"; }

preferences:
36.25 ms | 402 KiB | 5 Q