3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array(); foreach (explode($array, '&') as $param) { list($key, $value) = explode($param, '=', 2); $params[$key] = $value; } print_r($params); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/Gsmpf
function name:  (null)
number of ops:  25
compiled vars:  !0 = $params, !1 = $array, !2 = $param, !3 = $key, !4 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAR                                                 !1
          3        SEND_VAL                                                 '%26'
          4        DO_ICALL                                         $6      
          5      > FE_RESET_R                                       $7      $6, ->20
          6    > > FE_FETCH_R                                               $7, !2, ->20
    5     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 '%3D'
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $8      
         12        FETCH_LIST_R                                     $9      $8, 0
         13        ASSIGN                                                   !3, $9
         14        FETCH_LIST_R                                     $11     $8, 1
         15        ASSIGN                                                   !4, $11
         16        FREE                                                     $8
    7    17        ASSIGN_DIM                                               !0, !3
         18        OP_DATA                                                  !4
    4    19      > JMP                                                      ->6
         20    >   FE_FREE                                                  $7
   10    21        INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   11    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.76 ms | 1395 KiB | 17 Q