3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('key1' => 'value1', 'key2' => 'value2'); echo http_build_query($arr, '', ' '); echo PHP_EOL; echo urldecode(http_build_query($arr, '', ' '));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d4kno
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'http_build_query'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 ''
          4        SEND_VAL                                                 '+'
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    7     7        ECHO                                                     '%0A'
    9     8        INIT_FCALL                                               'urldecode'
          9        INIT_FCALL                                               'http_build_query'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 ''
         12        SEND_VAL                                                 '+'
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        ECHO                                                     $4
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.5 ms | 1394 KiB | 17 Q