3v4l.org

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

preferences:
82.43 ms | 402 KiB | 5 Q