3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $email = 'categoryparameterusedpricing_15'; $domain = strstr($email, '_', true); echo $domain.'<br>'; // выводит @example.com $user = strstr($email, '_'); // Начиная с PHP 5.3.0 echo $user; // выводит name
based on 2O1QN
Output for 5.3.0 - 7.2.0
categoryparameterusedpricing<br>_15
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17
Warning: Wrong parameter count for strstr() in /in/PBEnc on line 4 <br>_15
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/PBEnc on line 8
Process exited with code 255.