3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = $_SERVER['QUERY_STRING']; $basicurl = 'ABC://'; $separator = (parse_url($basicurl, PHP_URL_QUERY) == NULL) ? '?' : '&'; $finalurl .= $separator . $query; header('Location: '.$finalurl);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4mFo4
function name:  (null)
number of ops:  21
compiled vars:  !0 = $query, !1 = $basicurl, !2 = $separator, !3 = $finalurl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~4      '_SERVER'
          1        FETCH_DIM_R                                      ~5      ~4, 'QUERY_STRING'
          2        ASSIGN                                                   !0, ~5
    5     3        ASSIGN                                                   !1, 'ABC%3A%2F%2F'
    7     4        INIT_FCALL                                               'parse_url'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 6
          7        DO_ICALL                                         $8      
          8        IS_EQUAL                                                 $8, null
          9      > JMPZ                                                     ~9, ->12
         10    >   QM_ASSIGN                                        ~10     '%3F'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~10     '%26'
         13    >   ASSIGN                                                   !2, ~10
    8    14        CONCAT                                           ~12     !2, !0
         15        ASSIGN_OP                                     8          !3, ~12
   10    16        INIT_FCALL                                               'header'
         17        CONCAT                                           ~14     'Location%3A+', !3
         18        SEND_VAL                                                 ~14
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.01 ms | 1395 KiB | 17 Q