3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = ['een', 'twee']; $newUrl = "http://my-new-website.com/"; $currentPage = $_SERVER['PHP_SELF']; //building the querystrging (if some GET variables where set): $queryString = "?"; $firstRun = true; foreach($_GET as $key => $value) { if(!$firstRun) { $queryString .= "&"; } $queryString .= $key."=".urlencode($value); } var_dump($queryString);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 22
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/XQmlI
function name:  (null)
number of ops:  27
compiled vars:  !0 = $newUrl, !1 = $currentPage, !2 = $queryString, !3 = $firstRun, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $6      '_GET'
          1        ASSIGN                                                   $6, <array>
    5     2        ASSIGN                                                   !0, 'http%3A%2F%2Fmy-new-website.com%2F'
    6     3        FETCH_R                      global              ~9      '_SERVER'
          4        FETCH_DIM_R                                      ~10     ~9, 'PHP_SELF'
          5        ASSIGN                                                   !1, ~10
    8     6        ASSIGN                                                   !2, '%3F'
    9     7        ASSIGN                                                   !3, <true>
   10     8        FETCH_R                      global              ~14     '_GET'
          9      > FE_RESET_R                                       $15     ~14, ->22
         10    > > FE_FETCH_R                                       ~16     $15, !4, ->22
         11    >   ASSIGN                                                   !5, ~16
   11    12        BOOL_NOT                                         ~18     !3
         13      > JMPZ                                                     ~18, ->15
   12    14    >   ASSIGN_OP                                     8          !2, '%26'
   14    15    >   CONCAT                                           ~20     !5, '%3D'
         16        INIT_FCALL                                               'urlencode'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                         $21     
         19        CONCAT                                           ~22     ~20, $21
         20        ASSIGN_OP                                     8          !2, ~22
   10    21      > JMP                                                      ->10
         22    >   FE_FREE                                                  $15
   17    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.55 ms | 1396 KiB | 17 Q