3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<MIKROTIK add name=100YER on-login=":do {:put \"a\";} on-error={};" rate-limit=256k/512k MIKROTIK; var_export( preg_match_all( '~(\w+(?:-\w+)*)=(?|"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|([^" ]+))~', $string, $out ) ? array_combine($out[1], $out[2]) : [] );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/huqNL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'add+name%3D100YER+on-login%3D%22%3Ado+%7B%3Aput+%5C%22a%5C%22%3B%7D+on-error%3D%7B%7D%3B%22+rate-limit%3D256k%2F512k'
    7     1        INIT_FCALL                                               'var_export'
    8     2        INIT_FCALL                                               'preg_match_all'
    9     3        SEND_VAL                                                 '%7E%28%5Cw%2B%28%3F%3A-%5Cw%2B%29%2A%29%3D%28%3F%7C%22%28%5B%5E%22%5C%5C%5D%2A%28%3F%3A%5C%5C.%5B%5E%22%5C%5C%5D%2A%29%2A%29%22%7C%28%5B%5E%22+%5D%2B%29%29%7E'
   10     4        SEND_VAR                                                 !0
   11     5        SEND_REF                                                 !1
    8     6        DO_ICALL                                         $3      
   11     7      > JMPZ                                                     $3, ->16
   13     8    >   INIT_FCALL                                               'array_combine'
          9        FETCH_DIM_R                                      ~4      !1, 1
         10        SEND_VAL                                                 ~4
         11        FETCH_DIM_R                                      ~5      !1, 2
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        QM_ASSIGN                                        ~7      $6
         15      > JMP                                                      ->17
   14    16    >   QM_ASSIGN                                        ~7      <array>
         17    >   SEND_VAL                                                 ~7
    7    18        DO_ICALL                                                 
   15    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.98 ms | 999 KiB | 16 Q