3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exception ='word1|word3|word3|word4' ; $regex = '(?!('.$exception.'))((\W+)|$).+/?$'; $myword = 'a-unicode-statement-like-سلام' ; $m = preg_match($regex, $myword); print $m;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3uCrh
function name:  (null)
number of ops:  12
compiled vars:  !0 = $exception, !1 = $regex, !2 = $myword, !3 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'word1%7Cword3%7Cword3%7Cword4'
    4     1        CONCAT                                           ~5      '%28%3F%21%28', !0
          2        CONCAT                                           ~6      ~5, '%29%29%28%28%5CW%2B%29%7C%24%29.%2B%2F%3F%24'
          3        ASSIGN                                                   !1, ~6
    5     4        ASSIGN                                                   !2, 'a-unicode-statement-like-%D8%B3%D9%84%D8%A7%D9%85'
    7     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !3, $9
    8    10        ECHO                                                     !3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.61 ms | 1394 KiB | 15 Q