3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = 'aab bbcdadeeff'; if (preg_match('/([a-z])\1{2,}/s', $txt)) echo 'The string is not valid';

preferences:
35.25 ms | 402 KiB | 5 Q