3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '&#x4E2D;&#x6587;&#x7F51;&#x7AD9;100&#x5F3A;'; $test1 = html_entity_decode($test); $curloutput = iconv("gb2312", "utf8", $test1); if (preg_match("/[\p{Han}]/simu", $curloutput)) { echo 'Yay'; }

preferences:
46.33 ms | 402 KiB | 5 Q