3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $txt = 'aab bbcdadeeff'; if (preg_match('/^(?!.*(.)(?:.*\1){2})[a-z]+$/i', $txt)) echo 'The string is not valid';
Output for 4.3.0 - 7.1.0