3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = 'words=motherfucker()'; if (preg_match('/^([^|]*)(?:|(.*))(?:=(.*\(\)))?$/', $match, $var)) { print_r($var); } else { print('Not matching :('); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BDeW0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $match, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'words%3Dmotherfucker%28%29'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5B%5E%7C%5D%2A%29%28%3F%3A%7C%28.%2A%29%29%28%3F%3A%3D%28.%2A%5C%28%5C%29%29%29%3F%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->11
    4     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > JMP                                                      ->12
    6    11    >   ECHO                                                     'Not+matching+%3A%28'
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1394 KiB | 17 Q