3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "唧"; echo $str; preg_match("/[^\w]/", $str, $match); preg_match("/[\x{00000000}-\x{70000000}]+/u", $str, $mt); print_r($mt); print_r($match);
Output for 5.4.41 - 5.4.45, 5.5.10 - 5.6.28, 7.0.0 - 7.1.0
唧 Warning: preg_match(): Compilation failed: character value in \x{} or \o{} is too large at offset 25 in /in/1hURI on line 5 Array ( [0] => � )
Output for hhvm-3.10.0 - 3.12.0
唧 Warning: Compilation failed: character value in \x{} or \o{} is too large at offset 25 in /in/1hURI on line 5 Array ( [0] => � )
Output for 5.3.19 - 5.3.29, 5.4.9 - 5.4.40, 5.5.0 - 5.5.9
唧 Warning: preg_match(): Compilation failed: character value in \x{...} sequence is too large at offset 25 in /in/1hURI on line 5 Array ( [0] => � )
Output for 4.3.3 - 5.3.18, 5.4.0 - 5.4.8
唧Array ( [0] => 唧 ) Array ( [0] => � )
Output for 4.3.0 - 4.3.2
唧 Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 25 in /in/1hURI on line 5 Array ( ) Array ( [0] => � )