3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'categoryparameterusedpricing_15'; $domain = strstr($email, '_', true); echo $domain.'<br>'; // выводит @example.com $user = strstr($email, '_'); // Начиная с PHP 5.3.0 echo $user; // выводит name

preferences:
46.78 ms | 402 KiB | 5 Q