Estimated Reading Time function [PHP]

function read_time($text){
    $words = str_word_count(strip_tags($text));
    $min = ceil($words / 200);
    return $min . ' min read';
}

Source