@vergeams28 , have you tried to run this code in online ide?
Oct 26, 10:57:58 PM PHP
Output for 5.6.0 - 5.6.26, 7.0.0 - 7.1.0RC3
Warning: mail() has been disabled for security reasons in /in/IDCZn on line 2
Output for hhvm-3.10.0 - 3.14.4
Oct 4, 4:47:06 PM PHP
@markbelinskiy , added explanation and theory! Sorry for a late response
Aug 31, 3:53:26 PM PHP