3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $exception ='word1|word3|word3|word4' ; $myword = 'a-unicode-statement-like-سلام' ; $m = preg_match("(?!('.$exception.')(.*))", $myword); print $m;
Output for 4.3.11 - 7.1.0
Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 in /in/q7p6G on line 6
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 0 in /in/q7p6G on line 6