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; } echo SplitEmailAddress('asdfaf@jdaosjdsd.com');
Output for 5.4.20 - 7.1.0
Notice: Undefined offset: 1 in /in/8eG7I on line 6 Notice: Array to string conversion in /in/8eG7I on line 10 Array
Output for 5.4.0 - 5.4.19
Notice: Undefined offset: 1 in /in/M3WKa on line 6 Notice: Array to string conversion in /in/M3WKa on line 10 Array
Output for 5.3.28 - 5.3.29
Notice: Undefined offset: 1 in /in/8eG7I on line 6 Array
Output for 5.3.0 - 5.3.27
Notice: Undefined offset: 1 in /in/M3WKa on line 6 Array
Output for 4.3.1 - 5.2.17
Notice: Undefined offset: 1 in /in/M3WKa on line 6 Array
Output for 4.3.0
Notice: Undefined offset: 1 in /in/8eG7I on line 6 Array