- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match('//u', "\xef\xbf\xbf"));
var_dump(preg_match('//u', "\xf4\x8f\xbf\xbf"));
var_dump(preg_match('//u', "\xed\x80\x80"));
var_dump(preg_match('//u', "\xf4\x90\x80\x80"));