3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('ROOT', dirname(__FILE__).'/'); echo ROOT; mail('test','test text','yashkir@yandex.ru');
Output for 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
/in/ Fatal error: Uncaught Error: Call to undefined function mail() in /in/D1Uhf:4 Stack trace: #0 {main} thrown in /in/D1Uhf on line 4
Process exited with code 255.
Output for 5.2.6, 7.3.19 - 7.3.33, 7.4.7 - 7.4.26, 8.0.0 - 8.0.13
/in/ Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/D1Uhf on line 4
Output for 7.4.27 - 7.4.33
/in/ Warning: mail() has been disabled for security reasons in /in/D1Uhf on line 4
Output for 5.3.10, 5.6.31 - 5.6.40, 7.0.32 - 7.0.33, 7.1.22 - 7.1.33, 7.2.10 - 7.2.34, 7.3.0 - 7.3.18, 7.4.0 - 7.4.6
/in/ Warning: mail(): Could not execute mail delivery program ' -t -i ' in /in/D1Uhf on line 4
Output for 5.2.3 - 5.2.5, 5.2.7 - 5.2.17, 5.3.0 - 5.3.9, 5.3.11 - 5.3.24, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
/in/ Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i ' in /in/D1Uhf on line 4
Output for 5.3.25 - 5.3.29
/in/ Warning: mail(): Could not execute mail delivery program '/usr/bin/sendmail -t -i ' in /in/D1Uhf on line 4
Output for 4.4.3 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
/in/<br /> <b>Warning</b>: mail() [<a href='function.mail'>function.mail</a>]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i ' in <b>/in/D1Uhf</b> on line <b>4</b><br />
Output for 4.3.4 - 4.3.11, 4.4.0 - 4.4.2
/in/<br /> <b>Warning</b>: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i ' in <b>/in/D1Uhf</b> on line <b>4</b><br />
Output for 4.3.2 - 4.3.3
/in/<br /> <b>Warning</b>: mail(): Could not execute mail delivery program in <b>/in/D1Uhf</b> on line <b>4</b><br />
Output for 4.3.0 - 4.3.1
/in/<br /> <b>Warning</b>: mail() [<a href='http://www.php.net/function.mail'>function.mail</a>]: Could not execute mail delivery program in <b>/in/D1Uhf</b> on line <b>4</b><br />

preferences:
328.05 ms | 401 KiB | 464 Q