If you're not looking to duplicate the rest of the string, but instead just want the offset, in the spirit of the str*pos() functions, use strcspn()(PHP 5, PHP 7, PHP 8)
strpbrk — Procura na string por um dos caracteres de um conjunto
   strpbrk() busca na string
   por qualquer caractere contido em characters.
  
string
       A string onde characters é procurado.
      
charactersEste parâmetro é sensível a maiúsculas/minúsculas.
   Retorna uma string iniciando do caractere encontrado, ou false se
   nada for encontrado.
  
Exemplo #1 Exemplo de strpbrk()
<?php
$text = 'This is a Simple text.';
// isto mostrará "is is a Simple text." porque 'i' aparece primeiro
echo strpbrk($text, 'mi'), PHP_EOL;
// isto mostrará "Simple text." porque a função é sensível a maiúsculas/minúsculas
echo strpbrk($text, 'S'), PHP_EOL;
?>
If you're not looking to duplicate the rest of the string, but instead just want the offset, in the spirit of the str*pos() functions, use strcspn()A little modification to Evan's code to use an array for the second parameter :
<?php
function strpbrkpos($s, $accept) {
  $r = FALSE;
  $t = 0;
  $i = 0;
  $accept_l = count($accept);
  for ( ; $i < $accept_l ; $i++ )
    if ( ($t = strpos($s, $accept[$i])) !== FALSE )
      if ( ($r === FALSE) || ($t < $r) )
        $r = $t;
    return $r;
}
?>