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
Output for 5.4.18
Parse error: syntax error, unexpected end of file in /in/qVjY9 on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected end of file in /in/EjPAl on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/EjPAl on line 9
Process exited with code 255.

preferences:
189.77 ms | 1386 KiB | 54 Q