3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exception ='word1|word3|word3|word4' ; $myword = 'a-unicode-statement-like-سلام' ; $m = preg_match("(?!('.$exception.')(.*))", $myword); print $m;

preferences:
52.38 ms | 402 KiB | 5 Q