3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $str = "HostName=MyHostName&SharedAccessKeyName=SOMETHING&SharedAccessKey=VALUE+VALUE="; parse_str($str,$arr); print_r(array_map(function ($x) {return str_replace(' ', '+', $x);}, $arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vb0jQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'HostName%3DMyHostName%26SharedAccessKeyName%3DSOMETHING%26SharedAccessKey%3DVALUE%2BVALUE%3D'
    5     2        INIT_FCALL                                               'parse_str'
          3        SEND_VAR                                                 !1
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'array_map'
          8        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
          9        SEND_VAL                                                 ~5
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vb0jQ
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 '%2B'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
          7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.62 ms | 1013 KiB | 17 Q