3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $match = 'wordtwo'; if (preg_match('/^(\w*)(?:\|(\w*))(?:=(\w\(\)))?$/', $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/E1gQi
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, 'wordtwo'
   3     1        INIT_FCALL                                               'preg_match'
         2        SEND_VAL                                                 '%2F%5E%28%5Cw%2A%29%28%3F%3A%5C%7C%28%5Cw%2A%29%29%28%3F%3A%3D%28%5Cw%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 7.3.0