3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = file_get_contents('http://stackoverflow.com/questions/17520093/read-large-data-from-csv-file-in-php'); echo mb_detect_encoding($str, 'UTF-8', true);

preferences:
63.9 ms | 402 KiB | 5 Q