3v4l.org

run code in 500+ PHP versions simultaneously
<?php $broken_uri = 'domain.com/?campaignid=%campaignid%&adid=%bannerid%'; $hopefully_fixed_uri = str_replace('%', '%25', $broken_uri); var_dump(parse_url($hopefully_fixed_uri));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2C3Bo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $broken_uri, !1 = $hopefully_fixed_uri
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'domain.com%2F%3Fcampaignid%3D%25campaignid%25%26adid%3D%25bannerid%25'
    4     1        FRAMELESS_ICALL_3                str_replace         ~3      '%25', '%2525'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    5     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'parse_url'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                             $5      
          8        SEND_VAR                                                     $5
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.57 ms | 2163 KiB | 15 Q