3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'AB?????DE'; if (preg_match('/(.)\\1{3}/', $str, $matches)) print_r($matches);

preferences:
24.96 ms | 405 KiB | 5 Q