3v4l.org

run code in 300+ 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:  14
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        INIT_FCALL                                               'str_replace'
         2        SEND_VAL                                                 '%25'
         3        SEND_VAL                                                 '%2525'
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $3      
         6        ASSIGN                                                   !1, $3
   5     7        INIT_FCALL                                               'var_dump'
         8        INIT_FCALL                                               'parse_url'
         9        SEND_VAR                                                 !1
        10        DO_ICALL                                         $5      
        11        SEND_VAR                                                 $5
        12        DO_ICALL                                                 
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
12.08 ms | 410 KiB | 7 Q