3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Si es estudiante de intercambio, elija su país de origen: - No soy un estudiante de intercambio Tu interés en nuestra oferta de titulaciones se centra en los estudios de: - grado '; $regex = "/(?:.*?- )(?<param_0>.*?)( Tu inter| Your main interest)(?:.*?- )(?<param_1>.*?) \)/"; if (preg_match_all($regex, $message, $matches)) { $param_0 = matches[0]; $param_1 = matches[1]; echo 'Param 0: '; echo $param_0; echo '<br>Param 1: '; echo $param_1; echo '<br>'; } else { echo 'no match'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1G5QA
function name:  (null)
number of ops:  22
compiled vars:  !0 = $message, !1 = $regex, !2 = $matches, !3 = $param_0, !4 = $param_1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Si+es+estudiante+de+intercambio%2C+elija+su+pa%C3%ADs+de+origen%3A+-+No+soy+un+estudiante+de+intercambio+Tu+inter%C3%A9s+en+nuestra+oferta+de+titulaciones+se+centra+en+los+estudios+de%3A+-+grado+'
    3     1        ASSIGN                                                   !1, '%2F%28%3F%3A.%2A%3F-+%29%28%3F%3Cparam_0%3E.%2A%3F%29%28+Tu+inter%7C+Your+main+interest%29%28%3F%3A.%2A%3F-+%29%28%3F%3Cparam_1%3E.%2A%3F%29+%5C%29%2F'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $7      
          7      > JMPZ                                                     $7, ->20
    6     8    >   FETCH_CONSTANT                                   ~8      'matches'
          9        FETCH_DIM_R                                      ~9      ~8, 0
         10        ASSIGN                                                   !3, ~9
    7    11        FETCH_CONSTANT                                   ~11     'matches'
         12        FETCH_DIM_R                                      ~12     ~11, 1
         13        ASSIGN                                                   !4, ~12
    8    14        ECHO                                                     'Param+0%3A+'
    9    15        ECHO                                                     !3
   10    16        ECHO                                                     '%3Cbr%3EParam+1%3A+'
   11    17        ECHO                                                     !4
   12    18        ECHO                                                     '%3Cbr%3E'
         19      > JMP                                                      ->21
   14    20    >   ECHO                                                     'no+match'
   15    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.01 ms | 1395 KiB | 15 Q