3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(false) int(2) array(1) { [0]=> array(2) { [0]=> string(3) "foo" [1]=> string(12) "barлолbaz" } }
Output for hhvm-3.10.0

Process exited with code 153.
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" } }