- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$string1 = "sqrtpdrt"; // matched
$string2 = "qwntfschRprtkjs"; // not matched (contains chr group)
$regex = '/^(?=(?i).*[bcdfghjklmnpqrstvwxz]{4})(?!.*chr)/';
var_dump(preg_match($regex, $string1));
var_dump(preg_match($regex, $string2));