3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = []; $query = '4300-test 350 9900'; preg_match_all( '/(([0-9]{1})+([\-]{0,1})+([a-z]{0,1})+(\S{0}))/', $query, $matches ); echo '<pre>'; print_r($matches,false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fnJZl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $matches, !1 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '4300-test+350+9900'
    4     2        INIT_FCALL                                               'preg_match_all'
    5     3        SEND_VAL                                                 '%2F%28%28%5B0-9%5D%7B1%7D%29%2B%28%5B%5C-%5D%7B0%2C1%7D%29%2B%28%5Ba-z%5D%7B0%2C1%7D%29%2B%28%5CS%7B0%7D%29%29%2F'
    6     4        SEND_VAR                                                 !1
    7     5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    9     7        ECHO                                                     '%3Cpre%3E'
   10     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <false>
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.92 ms | 1385 KiB | 17 Q