3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user = strstr($email, '@', true); // Начиная с PHP 5.3.0 echo $user; // выводит name
based on YGc2I
Output for 5.3.0 - 7.2.0
Notice: Undefined variable: email in /in/iRohX on line 3
Output for 5.0.4 - 5.0.5, 5.1.1 - 5.2.17
Notice: Undefined variable: email in /in/iRohX on line 3 Warning: Wrong parameter count for strstr() in /in/iRohX on line 3
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/iRohX on line 4
Process exited with code 255.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: email in /in/iRohX on line 3 Warning: Wrong parameter count for strstr() in /in/iRohX on line 3