3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputArray = array( "id" => "foo", "name" => "bar", "money[0][amount]" => 30, "money[0][countryCode]" => "US", "money[1][amount]" => 25, "money[1][countryCode]" => "CA", ); $url = http_build_query($inputArray); parse_str($url, $output); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DAAUM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $inputArray, !1 = $url, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'http_build_query'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   13     5        INIT_FCALL                                               'parse_str'
          6        SEND_VAR                                                 !1
          7        SEND_REF                                                 !2
          8        DO_ICALL                                                 
   15     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.59 ms | 1397 KiB | 20 Q