3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brokenUri = 'https://domain.com/?abc=1212&campaignid=%campaignid%&adid=%bannerid%'; $brokenUri = parse_url($brokenUri); var_dump($brokenUri); // we need encoded input string $brokenUri['query'] = urlencode($brokenUri['query']); var_dump($brokenUri['query']); // result parse_str($brokenUri['query'], $brokenUri['query']); var_dump($brokenUri['query']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oPCf5
function name:  (null)
number of ops:  29
compiled vars:  !0 = $brokenUri
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fdomain.com%2F%3Fabc%3D1212%26campaignid%3D%25campaignid%25%26adid%3D%25bannerid%25'
   4     1        INIT_FCALL                                               'parse_url'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $2      
         4        ASSIGN                                                   !0, $2
   5     5        INIT_FCALL                                               'var_dump'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                                 
   8     8        INIT_FCALL                                               'urlencode'
         9        FETCH_DIM_R                                      ~6      !0, 'query'
        10        SEND_VAL                                                 ~6
        11        DO_ICALL                                         $7      
        12        ASSIGN_DIM                                               !0, 'query'
        13        OP_DATA                                                  $7
   9    14        INIT_FCALL                                               'var_dump'
        15        FETCH_DIM_R                                      ~8      !0, 'query'
        16        SEND_VAL                                                 ~8
        17        DO_ICALL                                                 
  12    18        INIT_FCALL                                               'parse_str'
        19        FETCH_DIM_R                                      ~10     !0, 'query'
        20        SEND_VAL                                                 ~10
        21        FETCH_DIM_W                                      $11     !0, 'query'
        22        SEND_REF                                                 $11
        23        DO_ICALL                                                 
  13    24        INIT_FCALL                                               'var_dump'
        25        FETCH_DIM_R                                      ~13     !0, 'query'
        26        SEND_VAL                                                 ~13
        27        DO_ICALL                                                 
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.1 ms | 411 KiB | 7 Q