3v4l.org

run code in 300+ PHP versions simultaneously
<?php function odesliEmail($adresa, $predmet, $odesilatel, $zprava) { $hlavicka = 'From:' . $odesilatel; $hlavicka .= "\nMIME-Version: 1.0\n"; $hlavicka .= "Content-Type: text/html; charset=\"utf-8\"\n"; $uspech = mb_send_mail($adresa, $predmet, $zprava, $hlavicka); return $uspech; } $uspech = odesliEmail('vas@email.cz', 'Test emailu', 'odesilatel@seznam.cz', 'Text zprávy'); if (!$uspech) echo('Email se nepodařilo odeslat, zkontrolujte adresu a odesílatele'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: mb_send_mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/FZJ2B on line 7 Email se nepodařilo odeslat, zkontrolujte adresu a odesílatele

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.93 ms | 401 KiB | 8 Q