3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "tototoottojklchvhdfvdfgvrf &amp"; var_dump(mb_detect_encoding($str));

preferences:
39.7 ms | 402 KiB | 5 Q