3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "localhost/project/index.php?letter=0&position=0&bypass=1"; parse_str(parse_url($url,PHP_URL_QUERY),$output); $output["position"] = 1; $query = http_build_query($output); echo parse_url($url,PHP_URL_PATH)."?".$query;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0FRW3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url, !1 = $output, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'localhost%2Fproject%2Findex.php%3Fletter%3D0%26position%3D0%26bypass%3D1'
    3     1        INIT_FCALL                                               'parse_str'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 6
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    4     9        ASSIGN_DIM                                               !1, 'position'
         10        OP_DATA                                                  1
    5    11        INIT_FCALL                                               'http_build_query'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
    6    15        INIT_FCALL                                               'parse_url'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 5
         18        DO_ICALL                                         $9      
         19        CONCAT                                           ~10     $9, '%3F'
         20        CONCAT                                           ~11     ~10, !2
         21        ECHO                                                     ~11
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1007 KiB | 16 Q