3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '中國心連心化肥'; $chinese = preg_match("/\p{Han}+/u", $str); echo $chinese; // echo strlen(); // echo $str;
based on qvZ5N
Output for 4.4.3 - 4.4.9, 5.1.3 - 7.3.1
1
Output for 4.4.0 - 4.4.2, 5.0.5, 5.1.1 - 5.1.2
Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 6 in /in/adoq8 on line 3
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/adoq8 on line 6
Process exited with code 255.
Output for 4.3.11, 5.0.0 - 5.0.4
Warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1 in /in/adoq8 on line 3
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1 in /in/adoq8 on line 3