3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $email = 'fuck-docomo@gmail.com'; echo (preg_match('/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/', $email)) ? 'match' : 'unmatch';
Output for 4.3.11 - 7.1.0
Warning: preg_match(): Unknown modifier '=' in /in/A5lgs on line 3 unmatch
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '=' in /in/A5lgs on line 3 unmatch