3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = AH587910; preg_match( '#^AH\d{6}$#',$matches ); echo $matches[5]; // 1234

preferences:
42.79 ms | 402 KiB | 5 Q