3v4l.org

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

preferences:
45.96 ms | 402 KiB | 5 Q