3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/(SKU-[^)]*)/i'; $license_name = "fdsfsdafsd"; $pos = preg_match($pattern, $license_name, $matches, PREG_OFFSET_CAPTURE, 3); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b0imK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pattern, !1 = $license_name, !2 = $pos, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28SKU-%5B%5E%29%5D%2A%29%2Fi'
    4     1        ASSIGN                                                   !1, 'fdsfsdafsd'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !3
          6        SEND_VAL                                                 256
          7        SEND_VAL                                                 3
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.02 ms | 1394 KiB | 17 Q