3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function SplitEmailAddress($email) { $xax = explode('@', $email); $poc['user'] = $xax[0]; $poc['domain'] = $poc[1]; return $poc; } print_r( SplitEmailAddress('asdfaf@jdaosjdsd.com') );
Output for 5.5.0 - 7.1.0
Notice: Undefined offset: 1 in /in/fR8vv on line 6 Array ( [user] => asdfaf [domain] => )
Output for 4.3.0 - 5.4.45
Array ( [user] => asdfaf [domain] => )