3v4l.org

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

preferences:
52.43 ms | 402 KiB | 5 Q