3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://medium.com/on-coding/5963ca9d6499'; $params = [ 'type' => '11', 'PPSX' => 'Pass', 'NewUser' => '1', 'LoginOptions' => '1', 'i3' => '71126', 'm1' => '1366', 'm2' => '768', 'm3' => '0', 'i12' => '1', 'i17' => '0', 'i18' => '__Login_Host|1,', ]; $array_keys = array_keys($params); if ($array_keys[0] !== 0) { $tmp = []; foreach ($params as $tmpParams) { var_export($tmpParams); // $tmp[] = implode('=', $tmpParams); } $params = $tmp; unset($tmp); } unset($array_keys); if (substr($url, -1) !== '?') { if (substr($url, -1) !== '/') { $url .= '/'; } $url .= '?'; } print $url .= implode('&', $params);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 34
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 34
Branch analysis from position: 16
Branch analysis from position: 19
filename:       /in/VuUSA
function name:  (null)
number of ops:  41
compiled vars:  !0 = $url, !1 = $params, !2 = $array_keys, !3 = $tmp, !4 = $tmpParams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fmedium.com%2Fon-coding%2F5963ca9d6499'
    5     1        ASSIGN                                                   !1, <array>
   19     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
   20     6        FETCH_DIM_R                                      ~9      !2, 0
          7        IS_NOT_IDENTICAL                                         ~9, 0
          8      > JMPZ                                                     ~10, ->19
   21     9    >   ASSIGN                                                   !3, <array>
   22    10      > FE_RESET_R                                       $12     !1, ->16
         11    > > FE_FETCH_R                                               $12, !4, ->16
   23    12    >   INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
   22    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $12
   26    17        ASSIGN                                                   !1, !3
   27    18        UNSET_CV                                                 !3
   29    19    >   UNSET_CV                                                 !2
   31    20        INIT_FCALL                                               'substr'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 -1
         23        DO_ICALL                                         $15     
         24        IS_NOT_IDENTICAL                                         $15, '%3F'
         25      > JMPZ                                                     ~16, ->34
   32    26    >   INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 -1
         29        DO_ICALL                                         $17     
         30        IS_NOT_IDENTICAL                                         $17, '%2F'
         31      > JMPZ                                                     ~18, ->33
   33    32    >   ASSIGN_OP                                     8          !0, '%2F'
   35    33    >   ASSIGN_OP                                     8          !0, '%3F'
   39    34    >   INIT_FCALL                                               'implode'
         35        SEND_VAL                                                 '%26'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $21     
         38        ASSIGN_OP                                     8  ~22     !0, $21
         39        ECHO                                                     ~22
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.13 ms | 1400 KiB | 21 Q