3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '00:18:71:EC:38:58/072b8d45-895d-4d9d-9adb-e1502d6821d9.xml'; preg_match('/^(([0-9A-F]{2}[:-]){5}[0-9A-F]{2})+[\/]+([0-9a-z-]+[.]+[a-z]{3})$/', $str, $match); var_dump($match); print $mac = $match['1']; print $regkey = $match['3'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2fM1u
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $match, !2 = $mac, !3 = $regkey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '00%3A18%3A71%3AEC%3A38%3A58%2F072b8d45-895d-4d9d-9adb-e1502d6821d9.xml'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%28%5B0-9A-F%5D%7B2%7D%5B%3A-%5D%29%7B5%7D%5B0-9A-F%5D%7B2%7D%29%2B%5B%5C%2F%5D%2B%28%5B0-9a-z-%5D%2B%5B.%5D%2B%5Ba-z%5D%7B3%7D%29%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        FETCH_DIM_R                                      ~7      !1, 1
         10        ASSIGN                                           ~8      !2, ~7
         11        ECHO                                                     ~8
    6    12        FETCH_DIM_R                                      ~9      !1, 3
         13        ASSIGN                                           ~10     !3, ~9
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1394 KiB | 17 Q