3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collection = range( 'A', 'Z' ); $offset = 1; $limit = 6; $alpha = implode("", $collection); Preg_match("/.{0," . $limit ."}" . chr(65 +$offset) . ".{0," . $limit ."}/", $alpha, $match); Var_dump($match);

preferences:
26.13 ms | 408 KiB | 5 Q