3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $username = "derp_5_derp_@derp.com"; $username = substr($username, 0, strpos($username, '@')); echo $username;
based on YXK0l
Output for 4.3.0 - 7.1.0
derp_5_derp_