3v4l.org

run code in 300+ 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 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YLiYq
function name:  (null)
number of ops:  16
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        INIT_FCALL                                               'preg_match'
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10      > JMPZ                                                     $9, ->13
         11    >   QM_ASSIGN                                        ~10     'matched'
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~10     'not+matched'
         14    >   ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.16 ms | 997 KiB | 14 Q