3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "~^&multi&[^&]+(&((?|p-(?<sad>[1-9]\d*)|page-(?<sad>[1-9]\d*))))?&[^&]+(&((?|p-(?<gogosi>[1-9]\d*)|page-(?<gogosi>[1-9]\d*))))?&?$~J"; $string = "&multi&mickael&p-23&george&page-34"; if (preg_match($pattern, $string, $matches)) { print_r($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/fJnpF
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pattern, !1 = $string, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7E%5E%26multi%26%5B%5E%26%5D%2B%28%26%28%28%3F%7Cp-%28%3F%3Csad%3E%5B1-9%5D%5Cd%2A%29%7Cpage-%28%3F%3Csad%3E%5B1-9%5D%5Cd%2A%29%29%29%29%3F%26%5B%5E%26%5D%2B%28%26%28%28%3F%7Cp-%28%3F%3Cgogosi%3E%5B1-9%5D%5Cd%2A%29%7Cpage-%28%3F%3Cgogosi%3E%5B1-9%5D%5Cd%2A%29%29%29%29%3F%26%3F%24%7EJ'
    5     1        ASSIGN                                                   !1, '%26multi%26mickael%26p-23%26george%26page-34'
    7     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->11
    8     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    9    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.39 ms | 1010 KiB | 15 Q