3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = <<<STRING This, actually, is (a) nice' old'er string, as Raphaƫl said, "divided and conquered"! STRING; var_export( preg_match_all("~[\pL\pM]+[\pL\pM'-]*(?<!['-])~u", $string, $matches) ? $matches[0] : [] );
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 = 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/JCaSH
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '++This%2C+actually%2C+is+%28a%29+nice%27+old%27er+string%2C+as+Rapha%C3%ABl+said%2C+%22divided+and+conquered%22%21'
    7     1        INIT_FCALL                                                   'var_export'
    8     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAL                                                     '%7E%5B%5CpL%5CpM%5D%2B%5B%5CpL%5CpM%27-%5D%2A%28%3F%3C%21%5B%27-%5D%29%7Eu'
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !1
          6        DO_ICALL                                             $3      
          7      > JMPZ                                                         $3, ->11
          8    >   FETCH_DIM_R                                          ~4      !1, 0
          9        QM_ASSIGN                                            ~5      ~4
         10      > JMP                                                          ->12
         11    >   QM_ASSIGN                                            ~5      <array>
         12    >   SEND_VAL                                                     ~5
    7    13        DO_ICALL                                                     
    9    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.56 ms | 2098 KiB | 15 Q