3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $identifier = "a@z.com"; $identifier = "another"; echo "Original"; echo strpos($identifier, '@') === false ? false : true; echo strpos($identifier2, '@') === false ? false : true; echo; echo "Improve"; echo (bool) strpos($identifier, '@') !== false; echo (bool) strpos($identifier2, '@') !== false;
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ';' in /in/LUscb on line 9
Process exited with code 255.