3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php setlocale(LC_ALL, 'de_DE'); // German locale (not needed, but you never know...) echo preg_match('/^[a-z]+$/', 'abc') ? "yes\n" : "no\n"; echo preg_match('/^\w+$/', "\xE4bc") ? "yes\n" : "no\n"; // äbc in ISO-8859-1 echo preg_match('/^\w+$/', "\xC3\xA4bc") ? "yes\n" : "no\n"; // äbc in UTF-8 echo preg_match('/^\w+$/u', "\xC3\xA4bc") ? "yes\n" : "no\n"; // w/ PCRE_UTF8
Output for 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
yes no no yes
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.3.3
yes no no no
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/p2iUR on line 7
Process exited with code 255.