3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data1='疯狂的管道Test'; $data2='睡眠帮手-背景乐Test'; echo preg_replace("/[\x{4e00}-\x{9fa5}]+/u", '', $data1) ."<br>\n". preg_replace("/[\x{4e00}-\x{9fa5}]+/u", '', $data2);
Output for 4.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Test<br> -Test
Output for 4.3.0 - 4.3.2
Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 8 in /in/SFRbf on line 5 Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 8 in /in/SFRbf on line 7 <br>