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 str_replace('_','',$user); // выводит name

preferences:
48.22 ms | 402 KiB | 5 Q