3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regex = "(toto.com|tata.fr)"; $email = "toto@totox.com"; $domain = explode('@',$email); $result = preg_match($regex,$domain); echo $result;
Output for 4.3.3 - 7.1.0
Warning: preg_match() expects parameter 2 to be string, array given in /in/RsQJs on line 6
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/RsQJs on line 6 0