3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regex = '/^[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*@'; $email = 'uni-direct@uws.ac.uk'; preg_match_all($regex, $email, $matches); var_dump($matches);
Output for 5.2.0 - 7.1.0
Warning: preg_match_all(): No ending delimiter '/' found in /in/M5Z42 on line 6 NULL
Output for 4.3.11 - 5.1.6
Warning: preg_match_all(): No ending delimiter '/' found in /in/M5Z42 on line 6 array(0) { }
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '/' found in /in/M5Z42 on line 6 array(0) { }