3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'ABC (R+R) : Weldone boy (My Love)'; $variable = "ABC (R+R)"; //$variable = "ABC \(R\+R\)"; $pattern = "/\b$variable\b/i"; echo preg_match($pattern, $string)? 'matched' : 'not matched';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLiYq
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $variable, !2 = $pattern
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ABC+%28R%2BR%29+%3A+Weldone+boy+%28My+Love%29'
    4     1        ASSIGN                                                       !1, 'ABC+%28R%2BR%29'
    6     2        ROPE_INIT                                         3  ~6      '%2F%5Cb'
          3        ROPE_ADD                                          1  ~6      ~6, !1
          4        ROPE_END                                          2  ~5      ~6, '%5Cb%2Fi'
          5        ASSIGN                                                       !2, ~5
    8     6        FRAMELESS_ICALL_2                preg_match          ~9      !2, !0
          7      > JMPZ                                                         ~9, ->10
          8    >   QM_ASSIGN                                            ~10     'matched'
          9      > JMP                                                          ->11
         10    >   QM_ASSIGN                                            ~10     'not+matched'
         11    >   ECHO                                                         ~10
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.22 ms | 1991 KiB | 14 Q