3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $str = "HostName=MyHostName&SharedAccessKeyName=SOMETHING&SharedAccessKey=VALUE+VALUE="; preg_match_all('/(?:^|\G)(\w+)=([^&]+)(?:&|$)/', $str, $matches); print_r(array_combine($matches[1], $matches[2]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qaOgq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arr, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'HostName%3DMyHostName%26SharedAccessKeyName%3DSOMETHING%26SharedAccessKey%3DVALUE%2BVALUE%3D'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%28%3F%3A%5E%7C%5CG%29%28%5Cw%2B%29%3D%28%5B%5E%26%5D%2B%29%28%3F%3A%26%7C%24%29%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'array_combine'
          9        FETCH_DIM_R                                      ~6      !2, 1
         10        SEND_VAL                                                 ~6
         11        FETCH_DIM_R                                      ~7      !2, 2
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.6 ms | 1011 KiB | 16 Q