3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php mail( $user_to_follow->email, 'You have a new follower!', "{$current_user->username} is now following you.", 'From: notifications@awesome-social-network.com' ); ?>
Output for 7.2.0
Notice: Undefined variable: user_to_follow in /in/gaT4U on line 4 Notice: Trying to get property 'email' of non-object in /in/gaT4U on line 4 Notice: Undefined variable: current_user in /in/gaT4U on line 6 Notice: Trying to get property 'username' of non-object in /in/gaT4U on line 6 Warning: mail() has been disabled for security reasons in /in/gaT4U on line 7
Output for 7.0.0 - 7.1.10
Notice: Undefined variable: user_to_follow in /in/gaT4U on line 4 Notice: Trying to get property of non-object in /in/gaT4U on line 4 Notice: Undefined variable: current_user in /in/gaT4U on line 6 Notice: Trying to get property of non-object in /in/gaT4U on line 6 Warning: mail() has been disabled for security reasons in /in/gaT4U on line 7
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: user_to_follow in /in/gaT4U on line 4 Notice: Trying to get property of non-object in /in/gaT4U on line 4 Notice: Undefined variable: current_user in /in/gaT4U on line 6 Notice: Trying to get property of non-object in /in/gaT4U on line 6 Warning: mail() has been disabled for security reasons in /in/gaT4U on line 8