3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "This is a text with John Doe", "This is a text with Max Müstermann ", "This is a text withJohn-Frank' Doe.", "This is a text with John/Doejlkjkjlk", ]; $pattern = "/^(?=.{25,999})(?=.*[a-z]{2})[a-zA-Z0-9äöü,.' -]+$/"; foreach ($strings as $string) { if (preg_match($pattern, $string)) { echo "Ok ==> $string" . PHP_EOL; } else { echo "error" . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/rK9TO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $strings, !1 = $pattern, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, '%2F%5E%28%3F%3D.%7B25%2C999%7D%29%28%3F%3D.%2A%5Ba-z%5D%7B2%7D%29%5Ba-zA-Z0-9%C3%A4%C3%B6%C3%BC%2C.%27+-%5D%2B%24%2F'
   10     2      > FE_RESET_R                                       $5      !0, ->16
          3    > > FE_FETCH_R                                               $5, !2, ->16
   11     4    >   INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->14
   12     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~7      'Ok+%3D%3D%3E+', !2
         11        CONCAT                                           ~8      ~7, '%0A'
         12        ECHO                                                     ~8
   11    13      > JMP                                                      ->15
   14    14    >   ECHO                                                     'error%0A'
   10    15    > > JMP                                                      ->3
         16    >   FE_FREE                                                  $5
   16    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.8 ms | 1013 KiB | 14 Q