3v4l.org

run code in 500+ PHP versions simultaneously
<?php $barcode = ']d201070462608682672140097289158930[GS]10101656[GS]17261130'; preg_match_all('/^]d2(?: 01(?P<g01>.{14})| 10(?P<g10>(?:(?!\[GS]).){1,20})(?:\[GS]|$)| 17(?P<g17>.{6})| 21(?P<g21>(?:(?!\[GS]).){1,20})(?:\[GS]|$) )+$/x', $barcode, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8sDUm
function name:  (null)
number of ops:  10
compiled vars:  !0 = $barcode, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5Dd201070462608682672140097289158930%5BGS%5D10101656%5BGS%5D17261130'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%5E%5Dd2%28%3F%3A%0A01%28%3FP%3Cg01%3E.%7B14%7D%29%7C%0A10%28%3FP%3Cg10%3E%28%3F%3A%28%3F%21%5C%5BGS%5D%29.%29%7B1%2C20%7D%29%28%3F%3A%5C%5BGS%5D%7C%24%29%7C%0A17%28%3FP%3Cg17%3E.%7B6%7D%29%7C%0A21%28%3FP%3Cg21%3E%28%3F%3A%28%3F%21%5C%5BGS%5D%29.%29%7B1%2C20%7D%29%28%3F%3A%5C%5BGS%5D%7C%24%29%0A%29%2B%24%2Fx'
   10     3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
    5     5        DO_ICALL                                                     
   12     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
270.2 ms | 1583 KiB | 16 Q