3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_CTYPE, "C"); var_dump(basename("foo\xFFbar"));

preferences:
46.56 ms | 402 KiB | 5 Q