3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $form = '<foo@example.com>'; $tmp = explode('<', $from); if (count($tmp) > 1) { $mail = explode('>', $tmp[1]); $consumer_mail = $mail[0]; } else { $consumer_mail = $from; } echo $consumer_mail;
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: from in /in/Y9dAm on line 5 Notice: Undefined variable: from in /in/Y9dAm on line 10
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: from in /in/Y9dAm on line 5 Notice: Undefined variable: from in /in/Y9dAm on line 10