3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $agent_name = 'aperry@clickspark.com'; $agent_name2 = 'crobinson'; echo strpos($agent_name2, '@'); $agent_name = substr($agent_name, 0, strpos($agent_name, '@')); $agent_name2 = substr($agent_name2, 0, strpos($agent_name2, '@')); echo $agent_name.PHP_EOL.$agent_name2;
based on T9C5c
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
aperry
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/e6rfG on line 11 aperryPHP_EOL