3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b(?:All DLC BG|DLC Comfort)\b(*SKIP)(*FAIL)|\bDLC\b/m'; $title = 'test All DLC BG test DLC Comfort and DLC here test here All DLC BG All DLC BG BG ALL DLC'; $result = preg_replace($re, '', $title); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tZghq
function name:  (null)
number of ops:  10
compiled vars:  !0 = $re, !1 = $title, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5Cb%28%3F%3AAll+DLC+BG%7CDLC+Comfort%29%5Cb%28%2ASKIP%29%28%2AFAIL%29%7C%5CbDLC%5Cb%2Fm'
    4     1        ASSIGN                                                   !1, 'test+All+DLC+BG+test+DLC+Comfort+and+DLC+here%0A%0Atest+here+All+DLC+BG+All+DLC+BG+BG+ALL+DLC'
    7     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    9     8        ECHO                                                     !2
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.3 ms | 1406 KiB | 15 Q