3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = array( "product.php?shopprodid=62&variantid=152" ); foreach ($links as $url){ $parts = parse_url($url); //foreach ( as $param){ var_dump(parse_str($parts['query'])); //} }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/rAZ7r
function name:  (null)
number of ops:  17
compiled vars:  !0 = $links, !1 = $url, !2 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $4      !0, ->15
          2    > > FE_FETCH_R                                               $4, !1, ->15
    9     3    >   INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
   13     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'parse_str'
          9        FETCH_DIM_R                                      ~7      !2, 'query'
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
    8    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $4
   15    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.79 ms | 1395 KiB | 19 Q