3v4l.org

run code in 200+ 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 7.2.0 - 7.2.6
Warning: Use of undefined constant Empfängeremail - assumed 'Empfängeremail' (this will throw an Error in a future version of PHP) in /in/f7C4Q on line 2 Warning: Use of undefined constant Betreff - assumed 'Betreff' (this will throw an Error in a future version of PHP) in /in/f7C4Q on line 2 Warning: Use of undefined constant Nachricht - assumed 'Nachricht' (this will throw an Error in a future version of PHP) 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 4.3.0, 5.4.39 - 7.1.20
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 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