3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "abc pqrs-1/2&3uvw xyz"; if (preg_match('~([a-z]+)((?:[^0-9a-z][0-9])+)([a-z]+)~', $str, $matches)) { preg_match_all('~[^0-9a-z][0-9]~', $matches[2], $x); $matches[2] = $x[0]; } print_r($matches);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/JI3HW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $matches, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abc+pqrs-1%2F2%263uvw+xyz'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%28%5Ba-z%5D%2B%29%28%28%3F%3A%5B%5E0-9a-z%5D%5B0-9%5D%29%2B%29%28%5Ba-z%5D%2B%29%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->16
    5     7    >   INIT_FCALL                                               'preg_match_all'
          8        SEND_VAL                                                 '%7E%5B%5E0-9a-z%5D%5B0-9%5D%7E'
          9        FETCH_DIM_R                                      ~5      !1, 2
         10        SEND_VAL                                                 ~5
         11        SEND_REF                                                 !2
         12        DO_ICALL                                                 
    6    13        FETCH_DIM_R                                      ~8      !2, 0
         14        ASSIGN_DIM                                               !1, 2
         15        OP_DATA                                                  ~8
    8    16    >   INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.22 ms | 1399 KiB | 19 Q