3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo http_build_query( ["foo"=>["a","b","c"]], null, '&') . "\n"; $array = array('a', 'n'); echo http_build_query($array, 'foo');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ku2oK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'http_build_query'
    4     1        SEND_VAL                                                 <array>
    5     2        SEND_VAL                                                 null
    6     3        SEND_VAL                                                 '%26'
          4        DO_ICALL                                         $1      
          5        CONCAT                                           ~2      $1, '%0A'
          6        ECHO                                                     ~2
    7     7        ASSIGN                                                   !0, <array>
    8     8        INIT_FCALL                                               'http_build_query'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'foo'
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1394 KiB | 15 Q