3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "php编程"; if (preg_match("/^[\x{4e00}-\x{9fa5}]+$/u",$str)) { print("该字符串全部是中文"); } else { print("该字符串不全部是中文"); }
Output for 4.3.3 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
该字符串不全部是中文
Output for 4.3.0 - 4.3.2
Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 9 in /in/6uCG3 on line 3 该字符串不全部是中文