3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(Locale::acceptFromHttp('Accept-Language: en-US,fr-FR,en-US;q=0.7,en;q=0.3'));

preferences:
62.85 ms | 402 KiB | 5 Q