3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalParams = [ 'foo' => 'bar', 'faz' => [1,2,3], 'targeting' => [ 'countries' => 'US,GB', 'age_min' => 13, ], 'call_to_action' => [ 'type' => 'LEARN_MORE', 'value' => [ 'link' => 'http://example.com', 'sponsorship' => [ 'image' => 'http://example.com/bar.jpg', ], ], ], ]; $params = explode('&', http_build_query($originalParams)); $result = []; foreach ($params as $param) { list($key, $value) = explode('=', $param, 2); $result[$key] = urldecode($value); } var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 28
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 28
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/Lbgto
function name:  (null)
number of ops:  33
compiled vars:  !0 = $originalParams, !1 = $params, !2 = $result, !3 = $param, !4 = $key, !5 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%26'
          3        INIT_FCALL                                               'http_build_query'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        SEND_VAR                                                 $7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !1, $8
   22     9        ASSIGN                                                   !2, <array>
   23    10      > FE_RESET_R                                       $11     !1, ->28
         11    > > FE_FETCH_R                                               $11, !3, ->28
   24    12    >   INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%3D'
         14        SEND_VAR                                                 !3
         15        SEND_VAL                                                 2
         16        DO_ICALL                                         $12     
         17        FETCH_LIST_R                                     $13     $12, 0
         18        ASSIGN                                                   !4, $13
         19        FETCH_LIST_R                                     $15     $12, 1
         20        ASSIGN                                                   !5, $15
         21        FREE                                                     $12
   25    22        INIT_FCALL                                               'urldecode'
         23        SEND_VAR                                                 !5
         24        DO_ICALL                                         $18     
         25        ASSIGN_DIM                                               !2, !4
         26        OP_DATA                                                  $18
   23    27      > JMP                                                      ->11
         28    >   FE_FREE                                                  $11
   28    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 941 KiB | 22 Q