3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Validator { public static function go($str) { if (mb_strlen($str) < 3) { return false; } return preg_match('/^([A-Za-z0-9_\s]+)$/', $str) == 1; } } var_dump(Validator::go("abc"));