3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mew=array("mew@gmail.com"); if(preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $mew)) { echo "lol"; } else { echo "non" } ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/9ojk2 on line 10
Process exited with code 255.