3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'zinc tab. 25mg №60 vita sip bla b6 50% b6mg №7 5-nok tab. 50mg №50 Blah blah №50'; preg_match_all("/(.*?)\s([\d|№]+[a-zA-Z%0-9]{1}.*)/", $str, $m); var_dump($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cSXec
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'zinc+tab.+25mg+%E2%84%9660%0Avita+sip+bla+b6+50%25+b6mg+%E2%84%967%0A5-nok+tab.+50mg+%E2%84%9650%0ABlah+blah+%E2%84%9650'
    8     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%28.%2A%3F%29%5Cs%28%5B%5Cd%7C%E2%84%96%5D%2B%5Ba-zA-Z%250-9%5D%7B1%7D.%2A%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.2 ms | 1010 KiB | 15 Q