3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(setlocale(LC_COLLATE, 'ru_RU.UTF-8')); var_dump(preg_match_all('/\\w+/u', "-foo-barлолbaz-", $m), $m);
based on tAATI
Output for 5.3.4 - 7.2.0
bool(false) int(2) array(1) { [0]=> array(2) { [0]=> string(3) "foo" [1]=> string(12) "barлолbaz" } }
Output for 4.3.0 - 5.3.3
bool(false) int(3) array(1) { [0]=> array(3) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(3) "baz" } }