3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = ['ES-3810/24MX', 'ES-3810/24MX35 123 TEST 34/TEST']; foreach ($strings as $string) { var_export( preg_split('/[^a-z\d]+|\d\K(?=\D)|\D\K(?=\d)/i', $string, 0, PREG_SPLIT_NO_EMPTY) ); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/B3rqQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $strings, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1      > FE_RESET_R                                           $3      !0, ->14
          2    > > FE_FETCH_R                                                   $3, !1, ->14
    6     3    >   INIT_FCALL                                                   'var_export'
    7     4        INIT_FCALL                                                   'preg_split'
          5        SEND_VAL                                                     '%2F%5B%5Ea-z%5Cd%5D%2B%7C%5Cd%5CK%28%3F%3D%5CD%29%7C%5CD%5CK%28%3F%3D%5Cd%29%2Fi'
          6        SEND_VAR                                                     !1
          7        SEND_VAL                                                     0
          8        SEND_VAL                                                     1
          9        DO_ICALL                                             $4      
         10        SEND_VAR                                                     $4
    6    11        DO_ICALL                                                     
    9    12        ECHO                                                         '%0A'
    5    13      > JMP                                                          ->2
         14    >   FE_FREE                                                      $3
   10    15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.58 ms | 1886 KiB | 15 Q