3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'key1\value1\key2\value2\key3\value3\key4\value4\key5\value5'; parse_str(preg_replace('/([^\\\\]+)\\\\([^\\\\]+)\\\\?/', '$1=$2&', $string), $output); var_export($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7AkOi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'key1%5Cvalue1%5Ckey2%5Cvalue2%5Ckey3%5Cvalue3%5Ckey4%5Cvalue4%5Ckey5%5Cvalue5'
    5     1        INIT_FCALL                                               'parse_str'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%28%5B%5E%5C%5C%5D%2B%29%5C%5C%28%5B%5E%5C%5C%5D%2B%29%5C%5C%3F%2F'
          4        SEND_VAL                                                 '%241%3D%242%26'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.17 ms | 1398 KiB | 20 Q