3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mail(Empfängeremail, Betreff, Nachricht, "From: Absender <absenderemail>"); $empfaenger = "empf@domain.de"; $betreff = "Die Mail-Funktion"; $from = "From: Nils Reimers <absender@domain.de>"; $text = "Hier lernt Ihr, wie man mit PHP Mails verschickt"; mail($empfaenger, $betreff, $text, $from);
Output for 4.3.0, 5.4.39 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 2 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 2 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 2 Warning: mail() has been disabled for security reasons in /in/f7C4Q on line 3 Warning: mail() has been disabled for security reasons in /in/f7C4Q on line 10
Output for hhvm-3.12.0
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 2 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 2 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 2
Output for hhvm-3.10.0
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 3 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 3 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 6
Output for 5.3.25 - 5.3.29, 5.4.16 - 5.4.38
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 2 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 2 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 2 sh: 1: /usr/bin/sendmail: not found sh: 1: /usr/bin/sendmail: not found
Output for 4.3.1 - 5.3.9, 5.3.11 - 5.3.24, 5.4.0 - 5.4.15
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 2 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 2 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 2 sh: 1: /usr/sbin/sendmail: not found sh: 1: /usr/sbin/sendmail: not found
Output for 5.3.10
Notice: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' in /in/f7C4Q on line 2 Notice: Use of undefined constant Betreff - assumed 'Betreff' in /in/f7C4Q on line 2 Notice: Use of undefined constant Nachricht - assumed 'Nachricht' in /in/f7C4Q on line 2 sh: 1: -t: not found sh: 1: -t: not found