3v4l.org

run code in 300+ PHP versions simultaneously
<? $test = '&#x4E2D;'; $anchor = html_entity_decode($test, ENT_COMPAT, 'UTF-8'); echo $anchor; if (preg_match("/[\p{Han}]/simu", $anchor)) { echo 'Yay'; } ?>

preferences:
38.42 ms | 402 KiB | 5 Q